diff options
Diffstat (limited to 'libmpdemux/open.c')
-rw-r--r-- | libmpdemux/open.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libmpdemux/open.c b/libmpdemux/open.c index 859713a752..65719223b0 100644 --- a/libmpdemux/open.c +++ b/libmpdemux/open.c @@ -115,7 +115,12 @@ stream_t* open_stream(char* filename,char** options, int* file_format){ stream_t* stream=NULL; int f=-1; off_t len; -*file_format = DEMUXER_TYPE_UNKNOWN; + + // Check if playlist or unknown + if (*file_format != DEMUXER_TYPE_PLAYLIST){ + *file_format=DEMUXER_TYPE_UNKNOWN; + } + if(!filename) { mp_msg(MSGT_OPEN,MSGL_ERR,"NULL filename, report this bug\n"); return NULL; |