[svn-commits] qwell: trunk r103832 - /trunk/main/channel.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Feb 19 16:35:23 CST 2008


Author: qwell
Date: Tue Feb 19 16:35:23 2008
New Revision: 103832

URL: http://svn.digium.com/view/asterisk?view=rev&rev=103832
Log:
Make sure to mask out non-audio first as well

Modified:
    trunk/main/channel.c

Modified: trunk/main/channel.c
URL: http://svn.digium.com/view/asterisk/trunk/main/channel.c?view=diff&rev=103832&r1=103831&r2=103832
==============================================================================
--- trunk/main/channel.c (original)
+++ trunk/main/channel.c Tue Feb 19 16:35:23 2008
@@ -3095,13 +3095,13 @@
 	int native;
 	int res;
 
+	/* Make sure we only consider audio */
+	fmt &= AST_FORMAT_AUDIO_MASK;
+	
 	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;
 	
 	/* Find a translation path from the native format to one of the desired formats */
 	if (!direction)




More information about the svn-commits mailing list