Fall back to read-based seeking for ffmpeg:// URLs when is_streamed is set

(i.e. it is not possible to use url_fseek).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29928 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2009-11-17 18:30:33 +00:00
parent 98ab90d2ca
commit 450d40d443
1 changed files with 2 additions and 2 deletions

View File

@ -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;