Mercurial > mplayer.hg
changeset 33714:5fda3578d1c5
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.
author | reimar |
---|---|
date | Sun, 03 Jul 2011 09:45:29 +0000 |
parents | bf15e320d5e3 |
children | f4264c071f4f |
files | stream/cache2.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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: