1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-28 03:10:55 +00:00

demux_lavf: avio_flush in DEMUXER_CTRL_RESYNC

This rules out possible avio buffering issues.
This commit is contained in:
Rudolf Polzer 2013-01-10 12:36:13 +01:00
parent 6c79888f7d
commit 7c40d8a36e

View File

@ -1078,8 +1078,10 @@ redo:
* call the new API instead of relying on av_seek_frame() to do this * call the new API instead of relying on av_seek_frame() to do this
* for us. * for us.
*/ */
avio_flush(priv->avfc->pb);
av_seek_frame(priv->avfc, 0, avio_tell(priv->avfc->pb), av_seek_frame(priv->avfc, 0, avio_tell(priv->avfc->pb),
AVSEEK_FLAG_BYTE); AVSEEK_FLAG_BYTE);
avio_flush(priv->avfc->pb);
return DEMUXER_CTRL_OK; return DEMUXER_CTRL_OK;
default: default:
return DEMUXER_CTRL_NOTIMPL; return DEMUXER_CTRL_NOTIMPL;