changeset 26924:ca50c4a72f68

100l, fix wrong order of cases in cache_do_control
author reimar
date Sun, 01 Jun 2008 18:14:56 +0000
parents cbd9c19ce4d8
children 3f6d2ca29727
files stream/cache2.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/stream/cache2.c	Sun Jun 01 16:40:56 2008 +0000
+++ b/stream/cache2.c	Sun Jun 01 18:14:56 2008 +0000
@@ -445,13 +445,13 @@
       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: