<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Il 10/11/2010 20:57, Ross Finlayson ha scritto:
<blockquote cite="mid:f06240800c900a8170ed0@%5B66.80.62.44%5D"
type="cite">
<blockquote type="cite">Il 10/11/2010 17:50, Ross Finlayson ha
scritto:
<br>
<br>
<blockquote type="cite">fprintf(stderr, "DEBUG: %d = %d - (%d +
%d + %d), tbs %d, tba %d, ods %d\n", newPacketStart,
fOutBuf->curPacketSize(), rtpHeaderSize,
fSpecialHeaderSize, frameSpecificHeaderSize(),
fOutBuf->totalBufferSize(),
fOutBuf->totalBytesAvailable(),
fOutBuf->overflowDataSize());
<br>
<br>
</blockquote>
Dear Ross,
<br>
What I get after crashing is:
<br>
<br>
DEBUG: 1424 = 1448 - (12 + 12 + 0), tbs 1000568, tba 962228,
ods 35806
<br>
<br>
(I know it seems ok
<br>
</blockquote>
<br>
Yes, it is, which means that your previous description of the
problem was wrong.
<br>
<br>
I suspect that the 'efficiency hack' is not the cause of the
problem, and that disabling it doesn't fix the problem, but just
masks it somehow. (I.e., it still exists, but just doesn't become
obvious.)
<br>
<br>
<br>
<blockquote type="cite">As additional info, here's the traceback
of the crash:
<br>
<br>
*** glibc detected *** ./rtspServer: munmap_chunk(): invalid
pointer: 0x406e5008 ***
<br>
======= Backtrace: =========
<br>
/lib/libc.so.6[0x40231f3c]
<br>
./rtspServer(_ZN15OutPacketBufferD1Ev+0x18)[0x5db3c]
<br>
./rtspServer(_ZN18MultiFramedRTPSinkD2Ev+0x3c)[0x6a10c]
<br>
./rtspServer(_ZN12VideoRTPSinkD2Ev+0x14)[0x6a410]
<br>
./rtspServer(_ZN16JPEGVideoRTPSinkD2Ev+0x14)[0x61c0c]
<br>
./rtspServer(_ZN20LiveJPEGVideoRTPSinkD0Ev+0x2c)[0x45e80]
<br>
</blockquote>
<br>
What is "LiveJPEGVideoRTPSink"? I told you that you no longer
needed to subclass "JPEGVideoRTPSink". I meant it.
<br>
<br>
Because the problem seems to occur only when you add your own
custom code, I'm not going to be able to help you fix it.
<br>
</blockquote>
Dear Ross,<br>
<br>
LiveJPEGVideoRTPSink adds only a parameters struct to the class
members; it does nothing else. Anyway, I'm gonna remove it and
investigate further.<br>
<br>
Regards,<br>
Cristiano.<br>
<br>
<div class="moz-signature">-- <br>
<title></title>
Belloni Cristiano<br>
Imavis Srl.<br>
<a href="http://www.imavis.com">www.imavis.com</a><br>
<a href="mailto://belloni@imavis.com">belloni@imavis.com</a><br>
</div>
</body>
</html>