changeset 29886:988c42cb595a

Fall back to read-based seeking for ffmpeg:// URLs when is_streamed is set (i.e. it is not possible to use url_fseek).
author reimar
date Tue, 17 Nov 2009 18:30:33 +0000
parents 0ed2bca29afa
children 195deae202cb
files stream/stream_ffmpeg.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/stream/stream_ffmpeg.c	Tue Nov 17 18:28:43 2009 +0000
+++ b/stream/stream_ffmpeg.c	Tue Nov 17 18:30:33 2009 +0000
@@ -112,11 +112,11 @@
     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;