mirror of
https://github.com/mpv-player/mpv
synced 2025-01-09 16:39:49 +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;
|
priv->cfg_title = 0;
|
||||||
|
|
||||||
free(filename);
|
free(filename);
|
||||||
stream->url=talloc_strdup(stream, "dvd://");
|
stream->url=talloc_strdup(stream, "dvdread://");
|
||||||
|
|
||||||
return open_s(stream);
|
return open_s(stream);
|
||||||
}
|
}
|
||||||
@ -948,7 +948,7 @@ static int ifo_stream_open (stream_t *stream)
|
|||||||
const stream_info_t stream_info_dvd = {
|
const stream_info_t stream_info_dvd = {
|
||||||
.name = "dvd",
|
.name = "dvd",
|
||||||
.open = open_s,
|
.open = open_s,
|
||||||
.protocols = (const char*const[]){ "dvd", NULL },
|
.protocols = (const char*const[]){ "dvdread", NULL },
|
||||||
.priv_size = sizeof(dvd_priv_t),
|
.priv_size = sizeof(dvd_priv_t),
|
||||||
.priv_defaults = &stream_priv_dflts,
|
.priv_defaults = &stream_priv_dflts,
|
||||||
.options = stream_opts_fields,
|
.options = stream_opts_fields,
|
||||||
|
@ -737,7 +737,7 @@ static int open_s(stream_t *stream)
|
|||||||
const stream_info_t stream_info_dvdnav = {
|
const stream_info_t stream_info_dvdnav = {
|
||||||
.name = "dvdnav",
|
.name = "dvdnav",
|
||||||
.open = open_s,
|
.open = open_s,
|
||||||
.protocols = (const char*const[]){ "dvdnav", NULL },
|
.protocols = (const char*const[]){ "dvd", "dvdnav", NULL },
|
||||||
.priv_size = sizeof(struct priv),
|
.priv_size = sizeof(struct priv),
|
||||||
.priv_defaults = &stream_priv_dflts,
|
.priv_defaults = &stream_priv_dflts,
|
||||||
.options = stream_opts_fields,
|
.options = stream_opts_fields,
|
||||||
|
Loading…
Reference in New Issue
Block a user