[commit] r5550 - freeswitch/trunk/src/mod/endpoints/mod_portaudio
Author: mikej Date: Thu Aug 2 23:33:50 2007 New Revision: 5550 Modified: freeswitch/trunk/src/mod/endpoints/mod_portaudio/mod_portaudio.c Log: fix for MODENDP-14. Modified: freeswitch/trunk/src/mod/endpoints/mod_portaudio/mod_portaudio.c ============================================================================== --- freeswitch/trunk/src/mod/endpoints/mod_portaudio/mod_portaudio.c (original) +++ freeswitch/trunk/src/mod/endpoints/mod_portaudio/mod_portaudio.c Thu Aug 2 23:33:50 2007 @@ -6,7 +6,7 @@ * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at + * the License. You may obtain a copy of the License ` * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, @@ -270,7 +270,9 @@ unsigned int pos = 0; switch_core_file_seek(&fh, &pos, 0, SEEK_SET); } - WriteAudioStream(globals.ring_stream, abuf, (long) olen, &globals.timer); + if (globals.ring_stream) { + WriteAudioStream(globals.ring_stream, abuf, (long) olen, &globals.timer); + } } } switch_clear_flag_locked((&globals), GFLAG_RING);
participants (1)
-
Freeswitch SVN