summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-06-01 18:14:56 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-06-01 18:14:56 +0000
commit9c6a2cb7401cca3c1f9a7b5857f81f5703b2df5a (patch)
treefb194ab3646bcddd701fd90b76aaf5cc5bf20ca5 /stream
parent6ab8ece7180097c1741d854599b6daf78e709a1e (diff)
downloadmpv-9c6a2cb7401cca3c1f9a7b5857f81f5703b2df5a.tar.bz2
mpv-9c6a2cb7401cca3c1f9a7b5857f81f5703b2df5a.tar.xz
100l, fix wrong order of cases in cache_do_control
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26956 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream')
-rw-r--r--stream/cache2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/stream/cache2.c b/stream/cache2.c
index e0dba9936c..a5be3903fa 100644
--- a/stream/cache2.c
+++ b/stream/cache2.c
@@ -445,13 +445,13 @@ int cache_do_control(stream_t *stream, int cmd, void *arg) {
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: