[vlc-commits] demux: flac: fix random audio pos on seek

Francois Cartegnie git at videolan.org
Fri Apr 7 15:26:58 CEST 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | 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;
 }
 



More information about the vlc-commits mailing list