[Live-devel] ServerMediaSubsession was called after destrcuted

yunus.lin 林韵 yunus.lin at tanhai.net
Thu Dec 2 18:00:23 PST 2021


​​​Hello.



I try to use livemedia ( live.2021.08.24.tar.gz ) in Android NDK. Usually, I save all instances in JAVA(use reinterpret_cast<jlong>).


TaskScheduler and UsageEnvironment are constructed in UI thread.

doEventLoop is called in a new thread.



When I use RTSPServer to proxy RTSP stream from VLC( at computer ), it may be encounter fatal signal 11 (memeory error) at handleCmd_PLAY or handleCmd_TEARDOWN ( RTSPServer.cpp ).
I found that the parameter "ServerMediaSubsession* subsession" is NULL, and "fStreamStates[i].subsession" is not NULL.
The pointer "fStreamStates[i].subsession" was destructed before handleCmd_PLAY or handleCmd_TEARDOWN was called.



I call live555ProxyServer's "main" function in native, and it works well.


I don't know if it is the right way to use live555.  Does anyone have suggestions?


Looking forward to your reply.



Thank you!


PS: Forgive my bad English~



Yun Lin



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20211203/e28ae05c/attachment.htm>


More information about the live-devel mailing list