diff options
Diffstat (limited to 'demux')
-rw-r--r-- | demux/demux_null.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demux/demux_null.c b/demux/demux_null.c index c6a25b5af2..1d4f4df794 100644 --- a/demux/demux_null.c +++ b/demux/demux_null.c @@ -21,7 +21,7 @@ static int try_open_file(struct demuxer *demux, enum demux_check check) { - if (strcmp(demux->stream->info->name, "null") != 0 && + if (!bstr_startswith0(bstr0(demux->filename), "null://") && check != DEMUX_CHECK_REQUEST) return -1; return 0; |