[MPlayer-cvslog] r33802 - trunk/stream/cache2.c

reimar subversion at mplayerhq.hu
Sun Jul 3 11:45:30 CEST 2011


Author: reimar
Date: Sun Jul  3 11:45:29 2011
New Revision: 33802

Log:
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.

Modified:
   trunk/stream/cache2.c

Modified: trunk/stream/cache2.c
==============================================================================
--- trunk/stream/cache2.c	Sun Jul  3 01:27:19 2011	(r33801)
+++ trunk/stream/cache2.c	Sun Jul  3 11:45:29 2011	(r33802)
@@ -619,6 +619,8 @@ int cache_do_control(stream_t *stream, i
       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:


More information about the MPlayer-cvslog mailing list