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

reimar subversion at mplayerhq.hu
Tue Aug 3 07:18:28 CEST 2010


Author: reimar
Date: Tue Aug  3 07:18:28 2010
New Revision: 31907

Log:
Avoid STREAM_CTRL_SEEK_TO_TIME messing up the current position for stream
types which do not support it.
Fixes seeking in local flv files.

Modified:
   trunk/stream/cache2.c

Modified: trunk/stream/cache2.c
==============================================================================
--- trunk/stream/cache2.c	Mon Aug  2 20:28:42 2010	(r31906)
+++ trunk/stream/cache2.c	Tue Aug  3 07:18:28 2010	(r31907)
@@ -600,7 +600,8 @@ int cache_do_control(stream_t *stream, i
     case STREAM_CTRL_SEEK_TO_CHAPTER:
     case STREAM_CTRL_SEEK_TO_TIME:
     case STREAM_CTRL_SET_ANGLE:
-      stream->pos = s->read_filepos = s->control_new_pos;
+      if (s->control_res != STREAM_UNSUPPORTED)
+          stream->pos = s->read_filepos = s->control_new_pos;
       break;
   }
   return s->control_res;


More information about the MPlayer-cvslog mailing list