Bug in pjmedia_wav_playlist_create() function

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

 



Hello!

I use pjsua2 interface to PJSIP.
I just found bug in pjmedia_wav_playlist_create() function.

When I use AudioMediaPlayer's createPlaylist() function, it throws
pj::Error with text "Unsupported WAVE file format (PJMEDIA_EWAVEUNSUPP)".
I found that I can playback the same wav files with AudioMediaPlayer's
createPlayer() function, one by one.

The error occurs in wav_playlist.c on line 455:
if (wavehdr.data_hdr.len != fport->fsize_list[index] -
fport->start_data_list[index])

I had compare pjsua_player_create() and pjsua_playlist_create() functions,
and found that pjsua_player_create() function has other comparison: with
'>' sign.

So, I fixed this expression and playlists works to me now.
You can see diff on this link:
https://github.com/halex2005/pjproject/commit/6cd30232e1ba6dff74651af2f41501dadb06ff77

Best regards, Aleksei
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20141027/f914bb2b/attachment.html>


[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