demux_lavf: drop dead code

stream.url can never be NULL, although it probably used to be.
This commit is contained in:
wm4 2015-04-25 20:42:02 +02:00
parent 983d24e3b9
commit 8998a4b3ed
1 changed files with 1 additions and 7 deletions

View File

@ -276,13 +276,7 @@ static int lavf_check_file(demuxer_t *demuxer, enum demux_check check)
demuxer->priv = talloc_zero(NULL, lavf_priv_t); demuxer->priv = talloc_zero(NULL, lavf_priv_t);
priv = demuxer->priv; priv = demuxer->priv;
priv->filename = s->url; priv->filename = remove_prefix(s->url, prefixes);
if (!priv->filename) {
priv->filename = "mp:unknown";
MP_WARN(demuxer, "Stream url is not set!\n");
}
priv->filename = remove_prefix(priv->filename, prefixes);
char *avdevice_format = NULL; char *avdevice_format = NULL;
if (s->uncached_type == STREAMTYPE_AVDEVICE) { if (s->uncached_type == STREAMTYPE_AVDEVICE) {