[Freeswitch-svn] [commit] r10365 - freeswitch/trunk/src
FreeSWITCH SVN
anthm at freeswitch.org
Wed Nov 12 11:45:21 PST 2008
Author: anthm
Date: Wed Nov 12 14:45:21 2008
New Revision: 10365
Log:
umm ya
Modified:
freeswitch/trunk/src/switch_core_media_bug.c
Modified: freeswitch/trunk/src/switch_core_media_bug.c
==============================================================================
--- freeswitch/trunk/src/switch_core_media_bug.c (original)
+++ freeswitch/trunk/src/switch_core_media_bug.c Wed Nov 12 14:45:21 2008
@@ -78,8 +78,13 @@
SWITCH_DECLARE(void) switch_core_media_bug_flush(switch_media_bug_t *bug)
{
- switch_buffer_zero(bug->raw_read_buffer);
- switch_buffer_zero(bug->raw_write_buffer);
+ if (bug->raw_read_buffer) {
+ switch_buffer_zero(bug->raw_read_buffer);
+ }
+
+ if (bug->raw_write_buffer) {
+ switch_buffer_zero(bug->raw_write_buffer);
+ }
}
SWITCH_DECLARE(switch_status_t) switch_core_media_bug_read(switch_media_bug_t *bug, switch_frame_t *frame)
More information about the Freeswitch-svn
mailing list