Mercurial > mplayer.hg
diff stream/cache2.c @ 26924:ca50c4a72f68
100l, fix wrong order of cases in cache_do_control
| author | reimar |
|---|---|
| date | Sun, 01 Jun 2008 18:14:56 +0000 |
| parents | 23c3741dc490 |
| children | 5fe6a8adf569 |
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:
