# HG changeset patch # User reimar # Date 1212344096 0 # Node ID ca50c4a72f68e0554b404b51aec4ddeb65666ef6 # Parent cbd9c19ce4d8bf435699bfe5bb632b999a5557c5 100l, fix wrong order of cases in cache_do_control diff -r cbd9c19ce4d8 -r ca50c4a72f68 stream/cache2.c --- 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: