[Live-devel] stopGettingFrames and onSourceClosure is causing crash
Dr. Monotosh Das
monotosh.das at videonetics.com
Tue Feb 16 23:12:10 PST 2016
Hi,
I am trying out with testRTSPClient and facing the following issue. I have
modified the DummySink to terminate in case of some break condition is
detected.
Even after execution of these statements MultiFramedRTPSourcce ->
getNextCompletedPacket is called and system is complaining that with
following exception: 0xC0000005: Access violation reading location
0xFFFFFFFFFFFFFFFF.
Can you please help me out?
Regards,
Monotosh
void DummySink::afterGettingFrame(unsigned frameSize,
unsigned numTruncatedBytes,
struct timeval presentationTime) {
if (numTruncatedBytes > 0) {
addData(fBuffer->Data.pData, frameSize, presentationTime);
if (fOutFid == NULL || fflush(fOutFid) == EOF || (some break
cond)) {
// The output file has closed. Handle this the same
way as if the input source had closed:
if (fSource != NULL) fSource->stopGettingFrames();
onSourceClosure();
return;
}
if (fPerFrameFileNameBuffer != NULL) {
if (fOutFid != NULL) {
fclose(fOutFid); fOutFid = NULL;
}
}
}
// Then try getting the next frame:
continuePlaying();
}
MultiFramedRTPSource.cpp [line 597]
BufferedPacket* ReorderingPacketBuffer
::getNextCompletedPacket(Boolean& packetLossPreceded) {
if (fHeadPacket == NULL) return NULL; //<-- 0xC0000005: Access violation
reading location 0xFFFFFFFFFFFFFFFF.
.
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20160217/4d7ef6a5/attachment.html>
More information about the live-devel
mailing list