[Live-devel] Problem with RTPInterface::sendPacket method

ChaSeop Im soupim at gmail.com
Thu Jul 24 05:31:11 PDT 2014


Hi.

I have implemented a RTSP server with own recording files.

The problem occurs when removed stream socket while sending packet over tcp
sockets.

When packet sending is failed in RTPInterface::sendDataOverTCP method, it
called RTPInterface::removeStreamSocket method.

call stack like this :
RtspPlaybackServerTest.exe!RTPInterface::removeStreamSocket(int
sockNum=444, unsigned char streamChannelId='')
RtspPlaybackServerTest.exe!RTPInterface::sendDataOverTCP(int socketNum=444,
const unsigned char * data=0x000000528417e860, unsigned int dataSize=4,
bool forceSendToSucceed=false)
RtspPlaybackServerTest.exe!RTPInterface::sendRTPorRTCPPacketOverTCP(unsigned
char * packet=0x000000528b219070, unsigned int packetSize=1448, int
socketNum=444, unsigned char streamChannelId='\0')
RtspPlaybackServerTest.exe!RTPInterface::sendPacket(unsigned char *
packet=0x000000528b219070, unsigned int packetSize=1448)


RTPInterface::removeStreamSocket delete streamPtr. This occur crash in
RTPInterface::sendPacket. because values of streams and streams->fNext are
not valid.

When I added break; after success = False; statement, crash is not occured.
but, I don't know this is right.

how to fix it?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20140724/967485ed/attachment-0001.html>


More information about the live-devel mailing list