|
|
@ -1455,13 +1455,13 @@ static void check_external_clock_speed(VideoState *is) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* seek in the stream */ |
|
|
|
/* seek in the stream */ |
|
|
|
static void stream_seek(VideoState *is, int64_t pos, int64_t rel, int seek_by_bytes) |
|
|
|
static void stream_seek(VideoState *is, int64_t pos, int64_t rel, int by_bytes) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!is->seek_req) { |
|
|
|
if (!is->seek_req) { |
|
|
|
is->seek_pos = pos; |
|
|
|
is->seek_pos = pos; |
|
|
|
is->seek_rel = rel; |
|
|
|
is->seek_rel = rel; |
|
|
|
is->seek_flags &= ~AVSEEK_FLAG_BYTE; |
|
|
|
is->seek_flags &= ~AVSEEK_FLAG_BYTE; |
|
|
|
if (seek_by_bytes) |
|
|
|
if (by_bytes) |
|
|
|
is->seek_flags |= AVSEEK_FLAG_BYTE; |
|
|
|
is->seek_flags |= AVSEEK_FLAG_BYTE; |
|
|
|
is->seek_req = 1; |
|
|
|
is->seek_req = 1; |
|
|
|
SDL_CondSignal(is->continue_read_thread); |
|
|
|
SDL_CondSignal(is->continue_read_thread); |
|
|
|