diff options
Diffstat (limited to 'stream/open.c')
-rw-r--r-- | stream/open.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/stream/open.c b/stream/open.c index f5cf71fae8..ce0a415ceb 100644 --- a/stream/open.c +++ b/stream/open.c @@ -47,6 +47,8 @@ int dvd_title=0; stream_t* open_stream(const char *filename, struct MPOpts *options, int *file_format) { + if (!file_format) + file_format = &(int){DEMUXER_TYPE_UNKNOWN}; // Check if playlist or unknown if (*file_format != DEMUXER_TYPE_PLAYLIST){ *file_format=DEMUXER_TYPE_UNKNOWN; |