ccrtp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ccrtp-devel] Zero pointer trouble


From: David Sugar
Subject: Re: [Ccrtp-devel] Zero pointer trouble
Date: Fri, 02 Mar 2007 18:33:02 -0500
User-agent: Thunderbird 1.5.0.9 (X11/20070212)

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
> address@hidden
> http://lists.gnu.org/mailman/listinfo/ccrtp-devel

Attachment: dyfet.vcf
Description: Vcard


reply via email to

[Prev in Thread] Current Thread [Next in Thread]