Re: Zero pointer trouble
David Sugar <[email protected]> Fri, 02 Mar 2007 18:33:02 -0500
| Newsgroups | gmane.comp.gnu.ccrtp.devel |
|---|---|
| Message-ID | <[email protected]> |
Yo hablare sobre este problema con Federico.
Rasmus Erfurt wrote:
> Hi,
>
> I had some problems when trying to receive 3 audio streams (SSRC's) in
> the same session. Once every 5-10 seconds, the code would segfault due
> to recvLast pointer = NULL.
>
> I have attached a diff that works around the problem.
>
> /R
>
>
> ------------------------------------------------------------------------
>
> --- ccrtp-1.5.1/src/incqueue.cpp 2006-12-31 14:12:33.000000000 +0100
> +++ ccrtp-1.5.1.new/src/incqueue.cpp 2007-03-02 11:15:17.000000000 +0100
> @@ -439,10 +439,18 @@
> srcLink->getLast()->setSrcNext(packetLink);
> packetLink->setSrcPrev(srcLink->getLast());
> srcLink->setLast(packetLink);
> +/* added by RER who was experiencing 0 pointers to recvLast */
> + if ( recvLast ) {
> + recvLast->setNext(packetLink);
> + packetLink->setPrev(recvLast);
> + }
> + recvLast = packetLink;
> +#if 0
> // the last packet in the global queue
> recvLast->setNext(packetLink);
> packetLink->setPrev(recvLast);
> recvLast = packetLink;
> +#endif
> }
> }
> // account the insertion of this packet into the queue
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Ccrtp-devel mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/ccrtp-devel
_______________________________________________
Ccrtp-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/ccrtp-devel
dyfet.vcf
(text/x-vcard, 177 B)
begin:vcard fn:David Sugar n:Sugar;David org:GNU Telephony email;internet:[email protected] tel;work:+1 201 215 2609 url:http://www.gnutelephony.org version:2.1 end:vcard