[dvblast-devel] [Git][videolan/dvblast][master] fix bug introduced in 8ad3fd69

Massiot gitlab at videolan.org
Wed Dec 28 14:11:49 CET 2016


Massiot pushed to branch master at videolan / dvblast


Commits:
161bc13c by Christophe Massiot at 2016-12-28T14:11:03+01:00
fix bug introduced in 8ad3fd69

The EITs were printed too often due to a mix up between EIT schedules and p/f.

- - - - -


1 changed file:

- demux.c


Changes:

=====================================
demux.c
=====================================
--- a/demux.c
+++ b/demux.c
@@ -3001,6 +3001,9 @@ static void HandleEIT( uint16_t i_pid, uint8_t *p_eit, mtime_t i_dts )
         return;
     }
 
+    if ( i_table_id != EIT_TABLE_ID_PF_ACTUAL )
+        goto out_eit;
+
     /* We do not use psi_table_* primitives as the spec allows for holes in
      * section numbering, and there is no sure way to know whether you have
      * gathered all sections. */
@@ -3016,16 +3019,13 @@ static void HandleEIT( uint16_t i_pid, uint8_t *p_eit, mtime_t i_dts )
     free(p_sid->pp_eit_sections[i_section]);
     p_sid->pp_eit_sections[i_section] = p_eit;
 
-    if ( i_table_id == EIT_TABLE_ID_PF_ACTUAL )
+    eit_print( p_eit, msg_Dbg, NULL, demux_Iconv, NULL, PRINT_TEXT );
+    if ( b_print_enabled )
     {
-        eit_print( p_eit, msg_Dbg, NULL, demux_Iconv, NULL, PRINT_TEXT );
-        if ( b_print_enabled )
-        {
-            eit_print( p_eit, demux_Print, NULL,
-                       demux_Iconv, NULL, i_print_type );
-            if ( i_print_type == PRINT_XML )
-                fprintf(print_fh, "\n");
-        }
+        eit_print( p_eit, demux_Print, NULL,
+                   demux_Iconv, NULL, i_print_type );
+        if ( i_print_type == PRINT_XML )
+            fprintf(print_fh, "\n");
     }
 
 out_eit:



View it on GitLab: https://code.videolan.org/videolan/dvblast/commit/161bc13c452b0400136287f6f2708a18d18b57f9
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/dvblast-devel/attachments/20161228/81438585/attachment-0001.html>


More information about the dvblast-devel mailing list