summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-06-12 00:32:37 +0200
committerwm4 <wm4@nowhere>2014-06-12 00:55:13 +0200
commit58b8a10bab3a5b47774dcd4c6cf05b47c6f76f54 (patch)
tree9659e594d6d08b0d312a06cd415aa4293fa6c71c
parent0d7c4b24c1ccc2869ece197b7c45b3c0c81a7d3d (diff)
downloadmpv-58b8a10bab3a5b47774dcd4c6cf05b47c6f76f54.tar.bz2
mpv-58b8a10bab3a5b47774dcd4c6cf05b47c6f76f54.tar.xz
stream_bluray: fix some const declarations
Like in commit 99f5fe.
-rw-r--r--stream/stream_bluray.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/stream/stream_bluray.c b/stream/stream_bluray.c
index a40856643b..fb3c6d749a 100644
--- a/stream/stream_bluray.c
+++ b/stream/stream_bluray.c
@@ -101,11 +101,11 @@ struct bluray_priv_s {
bool in_menu, use_nav, nav_enabled, popup_enabled;
};
-static struct bluray_priv_s bluray_stream_priv_dflts = {
+static const struct bluray_priv_s bluray_stream_priv_dflts = {
.cfg_title = BLURAY_DEFAULT_TITLE,
};
-static struct bluray_priv_s bdnav_stream_priv_dflts = {
+static const struct bluray_priv_s bdnav_stream_priv_dflts = {
.cfg_title = BLURAY_DEFAULT_TITLE,
.use_nav = true,
};
@@ -810,11 +810,11 @@ static int bluray_stream_open(stream_t *s)
const stream_info_t stream_info_bluray = {
.name = "bd",
.open = bluray_stream_open,
- .protocols = (const char*[]){ "bd", "br", "bluray", NULL },
+ .protocols = (const char*const[]){ "bd", "br", "bluray", NULL },
.priv_defaults = &bluray_stream_priv_dflts,
.priv_size = sizeof(struct bluray_priv_s),
.options = bluray_stream_opts_fields,
- .url_options = (const char*[]){
+ .url_options = (const char*const[]){
"hostname=title",
"filename=device",
NULL
@@ -824,11 +824,11 @@ const stream_info_t stream_info_bluray = {
const stream_info_t stream_info_bdnav = {
.name = "bdnav",
.open = bluray_stream_open,
- .protocols = (const char*[]){ "bdnav", "brnav", "bluraynav", NULL },
+ .protocols = (const char*const[]){ "bdnav", "brnav", "bluraynav", NULL },
.priv_defaults = &bdnav_stream_priv_dflts,
.priv_size = sizeof(struct bluray_priv_s),
.options = bdnav_stream_opts_fields,
- .url_options = (const char*[]){
+ .url_options = (const char*const[]){
"hostname=title",
"filename=device",
NULL