# HG changeset patch # User reimar # Date 1309686329 0 # Node ID 5fda3578d1c542af4de320c83b0e145f8183c577 # Parent bf15e320d5e3de1aac155374958fcb6f90ba3457 Do not assign anything when a stream control returns an error. Avoids issues with some places that don't check the return value of stream_control. diff -r bf15e320d5e3 -r 5fda3578d1c5 stream/cache2.c --- a/stream/cache2.c Sat Jul 02 23:27:19 2011 +0000 +++ b/stream/cache2.c Sun Jul 03 09:45:29 2011 +0000 @@ -619,6 +619,8 @@ return STREAM_UNSUPPORTED; } } + if (s->control_res != STREAM_OK) + return s->control_res; switch (cmd) { case STREAM_CTRL_GET_TIME_LENGTH: case STREAM_CTRL_GET_CURRENT_TIME: