[Live-devel] Asynchronous API - Subclassing troubles
Guillaume Ferry
ferry at bertin.fr
Mon Sep 20 09:29:43 PDT 2010
Hi Ross,
I'm currently updating our RTSP client (based on liveMedia), to use your
asynchronous API.
The client is being used within a simple GTK application, so as you
mentioned in the FAQ, I have to subclass to use GTK's event loop instead
of your native loop.
So I did a simple subclass of BasicTaskScheduler, that I named
EventScheduler.
The only method I'm re-implementing is 'doEventLoop', so I can let GTK
event loop handle the 'SingleStep' calls.
It works fine for the first call (DESCRIBE), but after then, it
crashes...I provided you a backtrace afterwards.
I'm pretty sure I've made a wrong (or incomplete) subclass, but I tried
to match openRTSP source as close as possible.
By the way, when I replace my custom TaskScheduler by the basic one
(BasicTaskScheduler), problem still occurs.
Thanks for you insights !
Best regards,
Guillaume.
PS : I'm using the latest liveMedia sources (2010.09.10)
**** BackTrace ****
#0 0x080882af in _Tables::getOurTables(UsageEnvironment&, unsigned int) ()
#1 0x080883b2 in MediaLookupTable::ourMedia(UsageEnvironment&) ()
#2 0x08088580 in Medium::Medium(UsageEnvironment&) ()
#3 0x0808bec8 in MediaSession::MediaSession(UsageEnvironment&) ()
#4 0x0808bf8b in MediaSession::createNew(UsageEnvironment&, char const*) ()
#5 0x08081307 in RTSPSession::createSession (this=0x818c9c0)
at
/home/ferry/Dev/svn/transcriber/mmTag/source/src/MediaComponent/rtsp/RTSPSession.cpp:72
#6 0x08081e65 in afterDESCRIBE (cli=0x818c9c0, rc=0,
resultString=0x8196ce8 "v=0\r\no=- 1284999509917742 1 IN IP4
127.0.1.1\r\ns=MPEG-1 or 2 Audio, streamed by
MultimediaRTSPServer\r\ni=audio:blessed.mp3\r\nt=0 0\r\na=tool:LIVE555
Streaming Media v2010.09.10\r\na=type:broadcast\r\na=control"...)
at
/home/ferry/Dev/svn/transcriber/mmTag/source/src/MediaComponent/rtsp/RTSPSession.cpp:457
#7 0x0809f4d5 in RTSPClient::handleResponseBytes(int) ()
#8 0x0809ffab in RTSPClient::incomingDataHandler1() ()
#9 0x080a833b in BasicTaskScheduler::SingleStep(unsigned int) ()
#10 0x0808518e in EventScheduler::advance (this=0x818c400)
at
/home/ferry/Dev/svn/transcriber/mmTag/source/src/MediaComponent/rtsp/EventScheduler.cpp:37
**** BackTrace End ****
--
Guillaume FERRY
Bertin Technologies
Département Bertin Conseil
Activité Traitement de l'Information et du Contenu
/Tél/ 01.39.30.62.09
/Fax/ 01.39.30.62.45
/Mail/ ferry at bertin.fr
/Web/ www.bertin.fr <http://www.bertin.fr>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20100920/6fa137c9/attachment.html>
More information about the live-devel
mailing list