[mythtv] [PATCH] Fix Segfault in dvbrecorder.cpp with multiple PIDs of the same type

Taylor Jacob rtjacob at earthlink.net
Sun Sep 12 02:08:22 EDT 2004


This is a quick patch to keep the backend from segfaulting when multiple PIDs of the same type are
in the database.

Dvbrecorder.cpp opens all pids in the DB, but only sets the transform for the 1st audio and video
pid.  Transform would crash if another pid of the same type was seen before the one that it was
expecting.

Transform right now only expects 1 audio pid, and 1 video pid, so I this quick patch will only
open 1 of each PID type to fix this problem.  Before if you didn't get the segfault the 2 pids
would be multiplexed together anyway, so nothing is lost by applying this patch and not fixing it
the "right" way until I can dig deeper into fixing this.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: dvb_multiple_pids_seg_fix.patch
Type: application/octet-stream
Size: 565 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20040912/b1d05728/dvb_multiple_pids_seg_fix.obj


More information about the mythtv-dev mailing list