]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3910 remove unnecessary code
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 17 Feb 2012 03:41:10 +0000 (21:41 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 17 Feb 2012 03:41:10 +0000 (21:41 -0600)
src/include/private/switch_core_pvt.h
src/switch_core_media_bug.c

index 9473139f20c85a2d1acaebe2cfc06af03b5c5738..7e3659b09d4957c1fe2065169f7bda1f152347fa 100644 (file)
@@ -195,7 +195,6 @@ struct switch_media_bug {
        char *target;
        switch_codec_implementation_t read_impl;
        switch_codec_implementation_t write_impl;
-       switch_timer_t timer;
        uint32_t record_frame_size;
        switch_frame_t *ping_frame;
        struct switch_media_bug *next;
index 14eda22e16ca6b101378ebbee76bb36ca36dfc1c..c01d823963af985b7f8b46055107d18745b6ff9d 100644 (file)
@@ -47,10 +47,6 @@ static void switch_core_media_bug_destroy(switch_media_bug_t *bug)
                switch_buffer_destroy(&bug->raw_write_buffer);
        }
 
-       if (bug->timer.timer_interface) {
-               switch_core_timer_destroy(&bug->timer);
-       }
-
        if (switch_event_create(&event, SWITCH_EVENT_MEDIA_BUG_STOP) == SWITCH_STATUS_SUCCESS) {
                switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Media-Bug-Function", "%s", bug->function);
                switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Media-Bug-Target", "%s", bug->target);
@@ -426,11 +422,6 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_bug_add(switch_core_session_t
                switch_mutex_init(&bug->write_mutex, SWITCH_MUTEX_NESTED, session->pool);
        }
 
-       if (switch_test_flag(bug, SMBF_READ_STREAM) || switch_test_flag(bug, SMBF_WRITE_STREAM)) {
-               switch_core_timer_init(&bug->timer, "soft", bug->read_impl.microseconds_per_packet / 1000, bug->read_impl.samples_per_packet,
-                                                          switch_core_session_get_pool(session)); 
-       }
-
        if ((bug->flags & SMBF_THREAD_LOCK)) {
                bug->thread_id = switch_thread_self();
        }