[MPlayer-cvslog] r29928 - trunk/stream/stream_ffmpeg.c

reimar subversion at mplayerhq.hu
Tue Nov 17 19:30:34 CET 2009


Author: reimar
Date: Tue Nov 17 19:30:33 2009
New Revision: 29928

Log:
Fall back to read-based seeking for ffmpeg:// URLs when is_streamed is set
(i.e. it is not possible to use url_fseek).

Modified:
   trunk/stream/stream_ffmpeg.c

Modified: trunk/stream/stream_ffmpeg.c
==============================================================================
--- trunk/stream/stream_ffmpeg.c	Tue Nov 17 19:28:43 2009	(r29927)
+++ trunk/stream/stream_ffmpeg.c	Tue Nov 17 19:30:33 2009	(r29928)
@@ -112,11 +112,11 @@ static int open_f(stream_t *stream, int 
     if (size >= 0)
         stream->end_pos = size;
     stream->type = STREAMTYPE_FILE;
+    stream->seek = seek;
     if (ctx->is_streamed) {
         stream->type = STREAMTYPE_STREAM;
-        stream->flags |= STREAM_SEEK_FW;
+        stream->seek = NULL;
     }
-    stream->seek = seek;
     stream->fill_buffer = fill_buffer;
     stream->write_buffer = write_buffer;
     stream->control = control;


More information about the MPlayer-cvslog mailing list