changeset 35164:bc0898c7399b

Allow STREAM_CTRL_GET_NUM_TITLES with cache enabled. This is missing in r34474.
author ib
date Sun, 21 Oct 2012 11:14:13 +0000
parents 5e11b54c9212
children b924f0df5a1d
files stream/cache2.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/stream/cache2.c	Sun Oct 21 10:10:57 2012 +0000
+++ b/stream/cache2.c	Sun Oct 21 11:14:13 2012 +0000
@@ -310,6 +310,7 @@
     case STREAM_CTRL_SET_ANGLE:
       needs_flush = 1;
       uint_res = s->control_uint_arg;
+    case STREAM_CTRL_GET_NUM_TITLES:
     case STREAM_CTRL_GET_NUM_CHAPTERS:
     case STREAM_CTRL_GET_CURRENT_CHAPTER:
     case STREAM_CTRL_GET_NUM_ANGLES:
@@ -640,6 +641,7 @@
       return s->stream_time_pos != MP_NOPTS_VALUE ? STREAM_OK : STREAM_UNSUPPORTED;
     case STREAM_CTRL_GET_LANG:
       s->control_lang_arg = *(struct stream_lang_req *)arg;
+    case STREAM_CTRL_GET_NUM_TITLES:
     case STREAM_CTRL_GET_NUM_CHAPTERS:
     case STREAM_CTRL_GET_CURRENT_CHAPTER:
     case STREAM_CTRL_GET_ASPECT_RATIO:
@@ -680,6 +682,7 @@
     case STREAM_CTRL_GET_ASPECT_RATIO:
       *(double *)arg = s->control_double_arg;
       break;
+    case STREAM_CTRL_GET_NUM_TITLES:
     case STREAM_CTRL_GET_NUM_CHAPTERS:
     case STREAM_CTRL_GET_CURRENT_CHAPTER:
     case STREAM_CTRL_GET_NUM_ANGLES: