mirror of
https://github.com/mpv-player/mpv
synced 2025-03-23 11:47:45 +00:00
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:
parent
98ab90d2ca
commit
450d40d443
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user