[mythtv] mythtv multirec dvb-s test (works)

Janne Grunau janne-mythtv at grunau.be
Mon Jul 9 10:25:09 UTC 2007


On Monday 09 July 2007 10:23:46 Erez D wrote:
> attached, pls find the backtrace
>
> btw, compiled with
> ./configure --prefix=/usr --enable-dvb --enable-proc-opt
> --compile-type=debug
> revision: 13850
>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread -1467016304 (LWP 27950)]
> 0xb7841df0 in RingBuffer::GetWritePosition () from /usr/lib/libmythtv-0.20.so.0

I see that ocasionally too (LiveTV channel switching on the same oncoder).
Following patch doesn't have visible negative side effects.
It's only a workaround, the real bug is somewhere else.

Janne

Index: libs/libmythtv/dtvrecorder.cpp
===================================================================
--- libs/libmythtv/dtvrecorder.cpp.orig
+++ libs/libmythtv/dtvrecorder.cpp
@@ -333,7 +333,7 @@ void DTVRecorder::HandleKeyframe(void)
 
     // Add key frame to position map
     positionMapLock.lock();
-    if (!positionMap.contains(frameNum))
+    if (!positionMap.contains(frameNum) && ringBuffer)
     {
         long long startpos = ringBuffer->GetWritePosition();
         // FIXME: handle keyframes with start code spanning over two ts packets


More information about the mythtv-dev mailing list