[MPlayer-cvslog] r35258 - trunk/stream/cache2.c

ib subversion at mplayerhq.hu
Sun Oct 21 13:14:13 CEST 2012


Author: ib
Date: Sun Oct 21 13:14:13 2012
New Revision: 35258

Log:
Allow STREAM_CTRL_GET_NUM_TITLES with cache enabled.

This is missing in r34474.

Modified:
   trunk/stream/cache2.c

Modified: trunk/stream/cache2.c
==============================================================================
--- trunk/stream/cache2.c	Sun Oct 21 12:10:57 2012	(r35257)
+++ trunk/stream/cache2.c	Sun Oct 21 13:14:13 2012	(r35258)
@@ -310,6 +310,7 @@ static int cache_execute_control(cache_v
     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 @@ int cache_do_control(stream_t *stream, i
       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 @@ int cache_do_control(stream_t *stream, i
     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:


More information about the MPlayer-cvslog mailing list