[asterisk-addons-commits] dbrooks: tag 1.6.1.0 r1020 - /tags/1.6.1.0/formats/format_mp3.c

SVN commits to the Asterisk addons project asterisk-addons-commits at lists.digium.com
Mon Aug 31 16:12:34 CDT 2009


Author: dbrooks
Date: Mon Aug 31 16:12:28 2009
New Revision: 1020

URL: http://svn.asterisk.org/svn-view/asterisk-addons?view=rev&rev=1020
Log:
Fixes MP3 problem with Playback() and Background()

Using Playback() and Background() with an MP3 file was not possible. This patch to
format_mp3 allows MP3s to be used with these functions.

(closes issue #15432)
Reported by: DLNoah
Tested by: dbrooks, DLNoah

Modified:
    tags/1.6.1.0/formats/format_mp3.c

Modified: tags/1.6.1.0/formats/format_mp3.c
URL: http://svn.asterisk.org/svn-view/asterisk-addons/tags/1.6.1.0/formats/format_mp3.c?view=diff&rev=1020&r1=1019&r2=1020
==============================================================================
--- tags/1.6.1.0/formats/format_mp3.c (original)
+++ tags/1.6.1.0/formats/format_mp3.c Mon Aug 31 16:12:28 2009
@@ -255,7 +255,7 @@
 	long offset=0,samples;
 	samples = sample_offset * 2;
 
-	min = 0;
+	min = 4;
 	fseek(s->f, 0, SEEK_END);
 	max = ftell(s->f) * 100;
 	cur = p->offset;




More information about the asterisk-addons-commits mailing list