mirror of https://github.com/mpv-player/mpv
demux_lavf: drop dead code
stream.url can never be NULL, although it probably used to be.
This commit is contained in:
parent
983d24e3b9
commit
8998a4b3ed
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue