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

reimar subversion at mplayerhq.hu
Sun Jun 1 20:14:56 CEST 2008


Author: reimar
Date: Sun Jun  1 20:14:56 2008
New Revision: 26956

Log:
100l, fix wrong order of cases in cache_do_control


Modified:
   trunk/stream/cache2.c

Modified: trunk/stream/cache2.c
==============================================================================
--- trunk/stream/cache2.c	(original)
+++ trunk/stream/cache2.c	Sun Jun  1 20:14:56 2008
@@ -445,13 +445,13 @@ int cache_do_control(stream_t *stream, i
       s->control_uint_arg = *(unsigned *)arg;
       s->control = cmd;
       break;
-    case STREAM_CTRL_GET_NUM_CHAPTERS:
-    case STREAM_CTRL_GET_CURRENT_CHAPTER:
 // the core might call these every frame, they are too slow for this...
     case STREAM_CTRL_GET_TIME_LENGTH:
+//    case STREAM_CTRL_GET_CURRENT_TIME:
       *(double *)arg = s->stream_time_length;
       return s->stream_time_length ? STREAM_OK : STREAM_UNSUPPORTED;
-//    case STREAM_CTRL_GET_CURRENT_TIME:
+    case STREAM_CTRL_GET_NUM_CHAPTERS:
+    case STREAM_CTRL_GET_CURRENT_CHAPTER:
     case STREAM_CTRL_GET_ASPECT_RATIO:
     case STREAM_CTRL_GET_NUM_ANGLES:
     case STREAM_CTRL_GET_ANGLE:



More information about the MPlayer-cvslog mailing list