[vlc-commits] demux: ts: create missing dvb subs (refs #5267)

Francois Cartegnie git at videolan.org
Thu Mar 10 11:07:56 CET 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Mar 10 10:50:15 2016 +0100| [86ca39d5e1deefd23e14f586d2b44982b370bdb0] | committer: Francois Cartegnie

demux: ts: create missing dvb subs (refs #5267)

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

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

diff --git a/modules/demux/mpeg/ts_psi.c b/modules/demux/mpeg/ts_psi.c
index ac14b79..56d77c8 100644
--- a/modules/demux/mpeg/ts_psi.c
+++ b/modules/demux/mpeg/ts_psi.c
@@ -1540,8 +1540,7 @@ static void PMTCallBack( void *data, dvbpsi_pmt_t *p_dvbpsipmt )
                      (p_dr->p_data[0] << 8) | p_dr->p_data[1] );
         }
 
-        const bool b_create_es = ((p_pes->p_es->fmt.i_cat == VIDEO_ES) ||
-                                  (p_pes->p_es->fmt.i_cat == AUDIO_ES));
+        const bool b_create_es = (p_pes->p_es->fmt.i_cat != UNKNOWN_ES);
 
         /* Now check and merge */
         if( b_pid_inuse ) /* We need to compare to the existing pes/es */



More information about the vlc-commits mailing list