summaryrefslogtreecommitdiffstats
path: root/demux
diff options
context:
space:
mode:
authorRudolf Polzer <divverent@xonotic.org>2013-01-10 12:36:13 +0100
committerRudolf Polzer <divverent@xonotic.org>2013-01-10 12:36:13 +0100
commit7c40d8a36ef48ca7216e3d8f4eddf19e70d419e5 (patch)
tree3d202a052bf16dd33e1c19e375bc9a9fdb00f223 /demux
parent6c79888f7d2b820043c342030e1a7c7112a00ed8 (diff)
downloadmpv-7c40d8a36ef48ca7216e3d8f4eddf19e70d419e5.tar.bz2
mpv-7c40d8a36ef48ca7216e3d8f4eddf19e70d419e5.tar.xz
demux_lavf: avio_flush in DEMUXER_CTRL_RESYNC
This rules out possible avio buffering issues.
Diffstat (limited to 'demux')
-rw-r--r--demux/demux_lavf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/demux/demux_lavf.c b/demux/demux_lavf.c
index c067c376b5..2ace2be203 100644
--- a/demux/demux_lavf.c
+++ b/demux/demux_lavf.c
@@ -1078,8 +1078,10 @@ redo:
* call the new API instead of relying on av_seek_frame() to do this
* for us.
*/
+ avio_flush(priv->avfc->pb);
av_seek_frame(priv->avfc, 0, avio_tell(priv->avfc->pb),
AVSEEK_FLAG_BYTE);
+ avio_flush(priv->avfc->pb);
return DEMUXER_CTRL_OK;
default:
return DEMUXER_CTRL_NOTIMPL;