[vlc-commits] demux: ts: set filter only after pcr repicking

Francois Cartegnie git at videolan.org
Thu Mar 10 11:53:30 CET 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Mar 10 11:52:02 2016 +0100| [b42a03ff217eb757f5a79a2f71cfe9b59ad3c18d] | committer: Francois Cartegnie

demux: ts: set filter only after pcr repicking

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

 modules/demux/mpeg/ts_psi.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/mpeg/ts_psi.c b/modules/demux/mpeg/ts_psi.c
index 9403554..19a4af1 100644
--- a/modules/demux/mpeg/ts_psi.c
+++ b/modules/demux/mpeg/ts_psi.c
@@ -1700,8 +1700,6 @@ static void PMTCallBack( void *data, dvbpsi_pmt_t *p_dvbpsipmt )
         PIDRelease( p_demux, pid_to_decref.p_elems[i] );
     ARRAY_RESET( pid_to_decref );
 
-    UpdatePESFilters( p_demux, p_sys->b_es_all );
-
     if( !p_sys->b_trust_pcr )
     {
         int i_cand = FindPCRCandidate( p_pmt );
@@ -1711,6 +1709,8 @@ static void PMTCallBack( void *data, dvbpsi_pmt_t *p_dvbpsipmt )
                   p_pmt->i_number, i_cand );
     }
 
+    UpdatePESFilters( p_demux, p_sys->b_es_all );
+
     /* Probe Boundaries */
     if( p_sys->b_canfastseek && p_pmt->i_last_dts == -1 )
     {



More information about the vlc-commits mailing list