[vlc-devel] commit: Display time info also when DVB MPEG-TS is received over network ( Marian Ďurkovič )

git version control git at videolan.org
Mon Oct 26 08:11:55 CET 2009


vlc | branch: master | Marian Ďurkovič <md at bts.sk> | Mon Oct 26 08:11:30 2009 +0100| [d7455f3749f90c1b4d3d9b9d37b131dbc4d091eb] | committer: Marian Ďurkovič 

Display time info also when DVB MPEG-TS is received over network

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

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

diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index 74e5b51..1903abd 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -1142,7 +1142,7 @@ static int DVBEventInformation( demux_t *p_demux, int64_t *pi_time, int64_t *pi_
     if( pi_time )
         *pi_time = 0;
 
-    if( p_sys->b_access_control && p_sys->i_dvb_length > 0 )
+    if( p_sys->i_dvb_length > 0 )
     {
         /* FIXME we should not use time() but read the date from the tdt */
         const time_t t = time( NULL );
@@ -3028,7 +3028,9 @@ static void EITCallBack( demux_t *p_demux,
     }
     if( p_epg->i_event > 0 )
     {
-        if( p_eit->i_service_id == p_sys->i_current_program && b_current_following )
+        if( b_current_following &&
+            (  p_sys->i_current_program == -1 ||
+               p_sys->i_current_program == p_eit->i_service_id ) )
         {
             p_sys->i_dvb_length = 0;
             p_sys->i_dvb_start = 0;




More information about the vlc-devel mailing list