[vlc-commits] demux: mepg/es: flush the packetizer on seek

Thomas Guillem git at videolan.org
Wed Jan 8 13:37:20 CET 2020


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Dec 20 13:36:18 2019 +0100| [3f9bed2a718b5af282c3d74e6a0595bd5141a18e] | committer: Thomas Guillem

demux: mepg/es: flush the packetizer on seek

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3f9bed2a718b5af282c3d74e6a0595bd5141a18e
---

 modules/demux/mpeg/es.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/demux/mpeg/es.c b/modules/demux/mpeg/es.c
index 427685c68b..41cde198b8 100644
--- a/modules/demux/mpeg/es.c
+++ b/modules/demux/mpeg/es.c
@@ -597,6 +597,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
                 block_ChainRelease( p_sys->p_packetized_data );
             p_sys->p_packetized_data = NULL;
         }
+        p_sys->p_packetizer->pf_flush( p_sys->p_packetizer );
 
         /* Reset chapter if any */
         p_sys->chapters.i_current = 0;



More information about the vlc-commits mailing list