[dvblast-devel] Prevent crash when new service is enabled but the PMT is not configured.

Georgi Chorbadzhiyski git at videolan.org
Wed Jan 23 12:25:59 CET 2013


dvblast | branch: master | Georgi Chorbadzhiyski <gf at unixsol.org> | Wed Jan 23 13:14:09 2013 +0200| [05f58540b23f4b35e20fa290d58a4cf411451f0b] | committer: Georgi Chorbadzhiyski

Prevent crash when new service is enabled but the PMT is not configured.

> http://git.videolan.org/gitweb.cgi/dvblast.git/?a=commit;h=05f58540b23f4b35e20fa290d58a4cf411451f0b
---

 demux.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/demux.c b/demux.c
index 765b911..07a1ea2 100644
--- a/demux.c
+++ b/demux.c
@@ -897,6 +897,10 @@ static void GetPIDS( uint16_t **ppi_wanted_pids, int *pi_nb_wanted_pids,
 
     p_pmt = p_sid->p_current_pmt;
     i_pmt_pid = p_sid->i_pmt_pid;
+    if ( p_pmt == NULL ) {
+        msg_Dbg(NULL, "no current PMT on sid %d\n", i_sid);
+        return;
+    }
 
     i_pcr_pid = pmt_get_pcrpid( p_pmt );
     j = 0;



More information about the dvblast-devel mailing list