diff options
author | wm4 <wm4@nowhere> | 2015-04-25 20:42:02 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-04-25 20:42:02 +0200 |
commit | 8998a4b3eda575142c2728cba97a23d226ac3190 (patch) | |
tree | 95497a92671912c88a7010ce73c20478f63ecc5a /demux | |
parent | 983d24e3b9ce9c9c7755279138c14170e85fbf37 (diff) |
demux_lavf: drop dead code
stream.url can never be NULL, although it probably used to be.
Diffstat (limited to 'demux')
-rw-r--r-- | demux/demux_lavf.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/demux/demux_lavf.c b/demux/demux_lavf.c index c14869555c..694b098878 100644 --- a/demux/demux_lavf.c +++ b/demux/demux_lavf.c @@ -276,13 +276,7 @@ static int lavf_check_file(demuxer_t *demuxer, enum demux_check check) demuxer->priv = talloc_zero(NULL, lavf_priv_t); priv = demuxer->priv; - priv->filename = s->url; - if (!priv->filename) { - priv->filename = "mp:unknown"; - MP_WARN(demuxer, "Stream url is not set!\n"); - } - - priv->filename = remove_prefix(priv->filename, prefixes); + priv->filename = remove_prefix(s->url, prefixes); char *avdevice_format = NULL; if (s->uncached_type == STREAMTYPE_AVDEVICE) { |