summaryrefslogtreecommitdiffstats
path: root/stream/stream_ffmpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream/stream_ffmpeg.c')
-rw-r--r--stream/stream_ffmpeg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stream/stream_ffmpeg.c b/stream/stream_ffmpeg.c
index c7a4dde541..c681dc2c88 100644
--- a/stream/stream_ffmpeg.c
+++ b/stream/stream_ffmpeg.c
@@ -112,11 +112,11 @@ static int open_f(stream_t *stream, int mode, void *opts, int *file_format)
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;