diff stream/stream_bluray.c @ 35169:3b2c280da1af

Add new stream control command STREAM_CTRL_GET_CURRENT_TITLE for DVDs. This provides the current title (aka track) number of a DVD.
author ib
date Sun, 21 Oct 2012 14:56:50 +0000
parents 6dcc91eb3cf8
children b5abdfe9bc61
line wrap: on
line diff
--- a/stream/stream_bluray.c	Sun Oct 21 14:40:49 2012 +0000
+++ b/stream/stream_bluray.c	Sun Oct 21 14:56:50 2012 +0000
@@ -126,6 +126,11 @@
         return 1;
     }
 
+    case STREAM_CTRL_GET_CURRENT_TITLE: {
+        *((unsigned int *) arg) = b->current_title;
+        return 1;
+    }
+
     case STREAM_CTRL_GET_CURRENT_CHAPTER: {
         *((unsigned int *) arg) = b->current_chapter;
         return 1;