[mythtv] [PATCH] Segv after "No PIDS set" message

Jon Burgess mythtv at jburgess.uklinux.net
Sun Mar 28 10:15:48 EST 2004


While I struggled to correctly configure the DVB channel information the 
mythbackend process would segfault immeadiately after generating the "No 
PIDS set, please correct your channel setup" message.

The patch below fixed the segv for me with no apparent ill-effects. Of 
course it still did not do anything useful until I got the channels 
configured correctly.

    Jon

-------------- next part --------------
--- dvbrecorder.cpp.~1.29.~	2004-03-24 08:51:07.000000000 +0000
+++ dvbrecorder.cpp	2004-03-27 22:21:25.000000000 +0000
@@ -348,8 +348,10 @@
     OpenFilters(pids.pcr,         DMX_PES_PCR);
     OpenFilters(pids.other,       DMX_PES_OTHER);
 
-    if (fd_demux.size() == 0 && pid_ipack.size() == 0)
+    if (fd_demux.size() == 0 && pid_ipack.size() == 0) {
         ERROR("No PIDS set, please correct your channel setup.");
+	return;
+    }
 
     pid_ipack[pids.audio[0]]->pv = (struct ipack_s *)pid_ipack[pids.video[0]];
     pid_ipack[pids.video[0]]->pa = (struct ipack_s *)pid_ipack[pids.audio[0]];


More information about the mythtv-dev mailing list