git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@103832
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
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)
/* reading */