summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
Diffstat (limited to 'stream')
-rw-r--r--stream/stream_bluray.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/stream/stream_bluray.c b/stream/stream_bluray.c
index 83d26c05fb..e606eafbb5 100644
--- a/stream/stream_bluray.c
+++ b/stream/stream_bluray.c
@@ -143,7 +143,14 @@ static int bluray_stream_control(stream_t *s, int cmd, void *arg)
}
return STREAM_ERROR;
}
-
+ case STREAM_CTRL_SET_CURRENT_TITLE: {
+ const uint32_t title = *((unsigned int*)arg);
+ if (title < b->num_titles && bd_select_title(b->bd, title)) {
+ b->current_title = title;
+ return STREAM_OK;
+ }
+ return STREAM_ERROR;
+ }
case STREAM_CTRL_GET_CURRENT_TITLE: {
*((unsigned int *) arg) = b->current_title;
return 1;