summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoble Huang <noblehng@gmail.com>2013-08-12 21:38:22 +0800
committerwm4 <wm4@nowhere>2013-08-15 23:43:00 +0200
commited2d819ea5b1b0ca08c644dbc7583994ad29171a (patch)
tree8b2c0055066456a90bdac6c78ceeed19f55a7627
parent4f728cfb994e9bedd5cc2edb06b196196c8fc9c9 (diff)
downloadmpv-ed2d819ea5b1b0ca08c644dbc7583994ad29171a.tar.bz2
mpv-ed2d819ea5b1b0ca08c644dbc7583994ad29171a.tar.xz
stream_bluray: fix bd:// url segfault introduced by commit bc1d61
-rw-r--r--stream/stream_bluray.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/stream/stream_bluray.c b/stream/stream_bluray.c
index 4864931cd5..3058792766 100644
--- a/stream/stream_bluray.c
+++ b/stream/stream_bluray.c
@@ -65,12 +65,8 @@ struct bluray_priv_s {
char *cfg_device;
};
-static const struct stream_priv_s {
- int title;
- char *device;
-} bluray_stream_priv_dflts = {
- BLURAY_DEFAULT_TITLE,
- NULL
+static struct bluray_priv_s bluray_stream_priv_dflts = {
+ .cfg_title = BLURAY_DEFAULT_TITLE
};
#define OPT_BASE_STRUCT struct bluray_priv_s