pjmedia_wav_playerr bug

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

 



Hi Dmitry,

Just apply the patch in https://trac.pjsip.org/repos/ticket/1502.
Thanks for the detail report + fix.

BR,
nanang


On Mon, Apr 30, 2012 at 7:32 AM, Dmitry Dudkin <ddv at abinet.com> wrote:
> Hello,
>
> I found small but very important bug in pjmedia_wav_player. With
> PJMEDIA_FILE_NO_LOOP option it still play samples from start in last frame.
> The problem is in fill_buffer that does not break a loop on EOF.
>
> ======================================================================
> --- wav_player.c.old ? ?2012-04-29 20:31:06.433848496 -0400
> +++ wav_player.c ? ? ? ?2012-04-29 19:29:44.133728965 -0400
> @@ -157,6 +157,7 @@
> ? ? ? ? ? ? ? ? ? ? int val = pjmedia_linear2alaw(0);
> ? ? ? ? ? ? ? ? ? ? pj_memset(fport->eofpos, val, size_left);
> ? ? ? ? ? ? ? ? }
> + ? ? ? ? ? ? ? ?size_left = 0;
> ? ? ? ? ? ? }
>
> ? ? ? ? ? ?/* Rewind file */
>
> ======================================================================
>
>
> --
> Regards,
> ?Dmitry ? ? ? ? ? ? ? ? ? ? ? ? ?mailto:ddv at abinet.com
>
>
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux