vlc | branch: master | Francois Cartegnie <[email protected]> | Fri Apr 7 15:01:09 2017 +0200| [15cdd2b2ab07883c7a3e7dedd6f11ebaee96f4ae] | committer: Francois Cartegnie
demux: flac: fix random audio pos on seek > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=15cdd2b2ab07883c7a3e7dedd6f11ebaee96f4ae --- modules/demux/flac.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/demux/flac.c b/modules/demux/flac.c index 69730d8..1a9683d 100644 --- a/modules/demux/flac.c +++ b/modules/demux/flac.c @@ -365,6 +365,14 @@ static int ControlSetTime( demux_t *p_demux, int64_t i_time ) } p_sys->i_pts = VLC_TS_INVALID; p_sys->i_next_block_flags |= BLOCK_FLAG_DISCONTINUITY; + + FlushPacketizer( p_sys->p_packetizer ); + if( p_sys->p_current_block ) + { + block_Release( p_sys->p_current_block ); + p_sys->p_current_block = NULL; + } + return VLC_SUCCESS; } _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
