From 2f72eecd890da9c6f460b1351e02b90610dff88c Mon Sep 17 00:00:00 2001 From: xylosper Date: Wed, 12 Mar 2014 14:41:34 +0900 Subject: command: set 'media-title' property for bluray disc with meta-data --- stream/stream_bluray.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'stream/stream_bluray.c') diff --git a/stream/stream_bluray.c b/stream/stream_bluray.c index d7a8d0b0cf..83d26c05fb 100644 --- a/stream/stream_bluray.c +++ b/stream/stream_bluray.c @@ -33,6 +33,7 @@ #include #include +#include #include #include "config.h" @@ -277,7 +278,14 @@ static int bluray_stream_control(stream_t *s, int cmd, void *arg) } case STREAM_CTRL_MANAGES_TIMELINE: return STREAM_OK; - + case STREAM_CTRL_GET_DISC_NAME: + { + const struct meta_dl *meta = bd_get_meta(b->bd); + if (!meta || !meta->di_name || !meta->di_name[0]) + break; + *(char**)arg = talloc_strdup(NULL, meta->di_name); + return STREAM_OK; + } default: break; } -- cgit v1.2.3