[vlc-commits] demux: ts: correctly reset current fix to no-trust-pcr on pcr

Francois Cartegnie git at videolan.org
Mon Jan 19 21:39:10 CET 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Jan 19 17:36:17 2015 +0100| [477597f2f74c81368b604de04324300fb540f7f9] | committer: Francois Cartegnie

demux: ts: correctly reset current fix to no-trust-pcr on pcr

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

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

diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index ecd3462..3233f26 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -2392,7 +2392,7 @@ static void PCRHandle( demux_t *p_demux, ts_pid_t *pid, block_t *p_bk )
                     i_group = p_prg->i_number;
                     p_sys->pcrfix.b_program_pcr_seen = true;
                     p_sys->pcrfix.i_first_dts = 0;
-                    p_sys->b_disable_pcr = false;
+                    p_sys->b_disable_pcr = !p_sys->b_trust_pcr;
                 }
                 else
                 {
@@ -2409,7 +2409,7 @@ static void PCRHandle( demux_t *p_demux, ts_pid_t *pid, block_t *p_bk )
                     i_group = p_prg->i_number; /* We've found a target group for update */
                     p_sys->pcrfix.b_program_pcr_seen = true;
                     p_sys->pcrfix.i_first_dts = 0;
-                    p_sys->b_disable_pcr = false;
+                    p_sys->b_disable_pcr = !p_sys->b_trust_pcr;
                 }
             }
         }



More information about the vlc-commits mailing list