mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
demux_lavf, stream_lavf: drop local buffers on time-seeks
There was chance that some data was left in various local buffers after time-seeks. Probably doesn't actually matter.
This commit is contained in:
@@ -113,8 +113,10 @@ static int control(stream_t *s, int cmd, void *arg)
|
||||
case STREAM_CTRL_AVSEEK: {
|
||||
struct stream_avseek *c = arg;
|
||||
int64_t r = avio_seek_time(avio, c->stream_index, c->timestamp, c->flags);
|
||||
if (r >= 0)
|
||||
if (r >= 0) {
|
||||
stream_drop_buffers(s);
|
||||
return 1;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case STREAM_CTRL_HAS_AVSEEK:
|
||||
|
||||
Reference in New Issue
Block a user