linphone-developers
[Top][All Lists]
Advanced

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

Re: [Linphone-developers] bug ms_fifo_update_write_ptr


From: Simon Morlat
Subject: Re: [Linphone-developers] bug ms_fifo_update_write_ptr
Date: Wed, 14 Sep 2005 16:50:45 +0200
User-agent: KMail/1.8.2

Hello,

You are right !
Thanks a lot for finding this bug !
How did you find it (crash ?)

Simon

Le Mardi 13 Septembre 2005 05:11, address@hidden a écrit :
> in file msfifo.c
> function
> void ms_fifo_update_write_ptr(MSFifo *fifo, gint written){
>       gint reserved=fifo->wr_ptr-fifo->prev_wr_ptr;
>       gint unwritten;
>       g_return_if_fail(reserved>=0);
>       unwritten=reserved-written;
>       g_return_if_fail(unwritten>=0);
>       /* fix readsize and writesize */
>       fifo->readsize-=unwritten;
>       fifo->writesize+=unwritten;
>       fifo->wr_ptr+=written;/*shoud be: fifo->wr_ptr=fifo->prev_wr_ptr+written
>                                     because fifo->wr_ptr has been
> update already in
>                                     function ms_fifo_get_write_ptr*/
> }




reply via email to

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