mirror of
https://github.com/mpv-player/mpv
synced 2025-01-09 00:19:32 +00:00
stream_dvd, stream_dvdnav: map dvd:// to dvdnav
The old stream_dvd.c implementation is still available under dvdread://.
This commit is contained in:
parent
e41755553b
commit
8ce73ebbe0
@ -940,7 +940,7 @@ static int ifo_stream_open (stream_t *stream)
|
||||
priv->cfg_title = 0;
|
||||
|
||||
free(filename);
|
||||
stream->url=talloc_strdup(stream, "dvd://");
|
||||
stream->url=talloc_strdup(stream, "dvdread://");
|
||||
|
||||
return open_s(stream);
|
||||
}
|
||||
@ -948,7 +948,7 @@ static int ifo_stream_open (stream_t *stream)
|
||||
const stream_info_t stream_info_dvd = {
|
||||
.name = "dvd",
|
||||
.open = open_s,
|
||||
.protocols = (const char*const[]){ "dvd", NULL },
|
||||
.protocols = (const char*const[]){ "dvdread", NULL },
|
||||
.priv_size = sizeof(dvd_priv_t),
|
||||
.priv_defaults = &stream_priv_dflts,
|
||||
.options = stream_opts_fields,
|
||||
|
@ -737,7 +737,7 @@ static int open_s(stream_t *stream)
|
||||
const stream_info_t stream_info_dvdnav = {
|
||||
.name = "dvdnav",
|
||||
.open = open_s,
|
||||
.protocols = (const char*const[]){ "dvdnav", NULL },
|
||||
.protocols = (const char*const[]){ "dvd", "dvdnav", NULL },
|
||||
.priv_size = sizeof(struct priv),
|
||||
.priv_defaults = &stream_priv_dflts,
|
||||
.options = stream_opts_fields,
|
||||
|
Loading…
Reference in New Issue
Block a user