1
0
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:
wm4 2014-06-20 19:43:51 +02:00
parent e41755553b
commit 8ce73ebbe0
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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,