[vlc-commits] demux: ts: use EIT first running event

Francois Cartegnie git at videolan.org
Tue Dec 20 21:42:46 CET 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Dec 20 18:18:39 2016 +0100| [3417f267cb35d10bbe1da8bbf7c96c72c6260a01] | committer: Francois Cartegnie

demux: ts: use EIT first running event

Two simultaneously running events can happen

sample ref
FranceTV_HD_AIT_ChevauchementRunningEIT_20161220.ts

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

 modules/demux/mpeg/ts_si.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/mpeg/ts_si.c b/modules/demux/mpeg/ts_si.c
index 52a8286..abcf19f 100644
--- a/modules/demux/mpeg/ts_si.c
+++ b/modules/demux/mpeg/ts_si.c
@@ -575,7 +575,7 @@ static void EITCallBack( demux_t *p_demux, dvbpsi_eit_t *p_eit )
                     vlc_epg_event_Delete( p_epgevt );
 
                 /* Update "now playing" field */
-                if( b_current_event )
+                if( b_current_event && p_epg->p_current == NULL )
                     vlc_epg_SetCurrent( p_epg, i_start );
             }
         }



More information about the vlc-commits mailing list