aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist_list.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/playlist_list.c')
-rw-r--r--src/playlist_list.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/playlist_list.c b/src/playlist_list.c
index 1419c6ac8..e8319bd17 100644
--- a/src/playlist_list.c
+++ b/src/playlist_list.c
@@ -284,7 +284,7 @@ playlist_suffix_supported(const char *suffix)
}
struct playlist_provider *
-playlist_list_open_path(const char *path_fs)
+playlist_list_open_path(const char *path_fs, struct input_stream **is_r)
{
GError *error = NULL;
const char *suffix;
@@ -318,7 +318,9 @@ playlist_list_open_path(const char *path_fs)
}
playlist = playlist_list_open_stream_suffix(is, suffix);
- if (playlist == NULL)
+ if (playlist != NULL)
+ *is_r = is;
+ else
input_stream_close(is);
return playlist;