<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.26.0">
</HEAD>
<BODY>
hi,<BR>
<BR>
I am new to live555 and implementing RTSP client by referring playCommon.cpp from testProgs. In my application i am following the sequence to open/play/close the rtsp session from my program.<BR>
<BR>
<FONT COLOR="#3366ff">create_thread(RTSP);</FONT><BR>
<FONT COLOR="#3366ff">....................................</FONT><BR>
<FONT COLOR="#3366ff">//after some time-----------------</FONT><BR>
<FONT COLOR="#3366ff">shutdown();</FONT><BR>
<FONT COLOR="#3366ff">cancel_thread(RTSP);</FONT><BR>
<BR>
<BR>
the definition of create_thread is like this<BR>
<BR>
open all the medium, sessions and initiate doEventLoop();<BR>
<BR>
<BR>
Here my problem is even after cancel_thread(RTSP), I am getting segmentaion falut like this and my program got killed.<BR>
<BR>
<FONT COLOR="#ff0000">Program received signal SIGSEGV, Segmentation fault.</FONT><BR>
<FONT COLOR="#ff0000">[Switching to Thread 1706]</FONT><BR>
<FONT COLOR="#ff0000">0x00000000 in ?? ()</FONT><BR>
<FONT COLOR="#ff0000">(gdb) bt</FONT><BR>
<FONT COLOR="#ff0000">#0 0x00000000 in ?? ()</FONT><BR>
<FONT COLOR="#ff0000">#1 0x00425dfc in FramedSource::afterGetting (source=<value optimized out>) at FramedSource.cpp:91</FONT><BR>
<FONT COLOR="#ff0000">#2 0x0042e878 in MPEG2TransportStreamFramer::afterGettingFrame1 (this=0x54f738, frameSize=<value optimized out>, presentationTime=</FONT><BR>
<FONT COLOR="#ff0000"> {tv_sec = 0, tv_usec = 0}) at MPEG2TransportStreamFramer.cpp:151</FONT><BR>
<FONT COLOR="#ff0000">#3 0x00425dfc in FramedSource::afterGetting (source=<value optimized out>) at FramedSource.cpp:91</FONT><BR>
<FONT COLOR="#ff0000">#4 0x004261e0 in BasicUDPSource::incomingPacketHandler1 (this=0x54fac8) at BasicUDPSource.cpp:72</FONT><BR>
<FONT COLOR="#ff0000">#5 0x0043a370 in BasicTaskScheduler::SingleStep(unsigned int) ()</FONT><BR>
<FONT COLOR="#ff0000">#6 0x0043c2fc in BasicTaskScheduler0::doEventLoop(char*) ()</FONT><BR>
<FONT COLOR="#ff0000">#7 0x0040b0ec in RTSP(void*) ()</FONT><BR>
<BR>
<BR>
Please help me to fix this issue.<BR>
<BR>
thanks in advance,<BR>
Mallikarjun
</BODY>
</HTML>