[asterisk-commits] qwell: trunk r103831 - /trunk/main/channel.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Feb 19 16:23:04 CST 2008


Author: qwell
Date: Tue Feb 19 16:23:04 2008
New Revision: 103831

URL: http://svn.digium.com/view/asterisk?view=rev&rev=103831
Log:
Maybe we should set the value before we test it?  Fixes an issue people have been seeing (unreported?) with file playback not working.

Modified:
    trunk/main/channel.c

Modified: trunk/main/channel.c
URL: http://svn.digium.com/view/asterisk/trunk/main/channel.c?view=diff&rev=103831&r1=103830&r2=103831
==============================================================================
--- trunk/main/channel.c (original)
+++ trunk/main/channel.c Tue Feb 19 16:23:04 2008
@@ -3095,13 +3095,14 @@
 	int native;
 	int res;
 
+	native = chan->nativeformats;
+
 	if (!fmt || !native)	/* No audio requested */
 		return 0;	/* Let's try a call without any sounds (video, text) */
 	
 	/* Make sure we only consider audio */
 	fmt &= AST_FORMAT_AUDIO_MASK;
 	
-	native = chan->nativeformats;
 	/* Find a translation path from the native format to one of the desired formats */
 	if (!direction)
 		/* reading */




More information about the asterisk-commits mailing list