# HG changeset patch # User reimar # Date 1304880283 0 # Node ID c36ab8db37f60ada031848adc4ffa763f88ed622 # Parent b1e64a3d6dd3fb856278f266f578531bbdc49884 100l, fix seek cache controls with cache enabled, broken by r33435. diff -r b1e64a3d6dd3 -r c36ab8db37f6 stream/cache2.c --- a/stream/cache2.c Sun May 08 18:14:37 2011 +0000 +++ b/stream/cache2.c Sun May 08 18:44:43 2011 +0000 @@ -276,18 +276,20 @@ } if (s->control == -1) return 1; switch (s->control) { + case STREAM_CTRL_SEEK_TO_TIME: + double_res = s->control_double_arg; case STREAM_CTRL_GET_CURRENT_TIME: - case STREAM_CTRL_SEEK_TO_TIME: case STREAM_CTRL_GET_ASPECT_RATIO: s->control_res = s->stream->control(s->stream, s->control, &double_res); s->control_double_arg = double_res; break; case STREAM_CTRL_SEEK_TO_CHAPTER: + case STREAM_CTRL_SET_ANGLE: + uint_res = s->control_uint_arg; case STREAM_CTRL_GET_NUM_CHAPTERS: case STREAM_CTRL_GET_CURRENT_CHAPTER: case STREAM_CTRL_GET_NUM_ANGLES: case STREAM_CTRL_GET_ANGLE: - case STREAM_CTRL_SET_ANGLE: s->control_res = s->stream->control(s->stream, s->control, &uint_res); s->control_uint_arg = uint_res; break;