]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_av avformat remove unused code
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 19 Jun 2015 18:55:26 +0000 (13:55 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 19 Jun 2015 18:55:26 +0000 (13:55 -0500)
src/mod/applications/mod_av/avformat.c

index 2448d04a39c5f20aff2c14597258a5325480a2d9..adeaee03180f63f4e06a968e964f77f0fc589dcb 100644 (file)
@@ -1330,7 +1330,6 @@ static switch_status_t av_file_open(switch_file_handle_t *handle, const char *pa
 {
        av_file_context_t *context;
        char *ext;
-       unsigned int flags = 0;
        const char *tmp = NULL;
        AVOutputFormat *fmt;
        const char *format = NULL;
@@ -1364,19 +1363,6 @@ static switch_status_t av_file_open(switch_file_handle_t *handle, const char *pa
        switch_core_timer_init(&context->timer, "soft", 1, 1000, context->pool);
        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "init timer\n");
 
-       if (switch_test_flag(handle, SWITCH_FILE_FLAG_WRITE)) {
-               flags |= SWITCH_FOPEN_WRITE | SWITCH_FOPEN_CREATE;
-               if (switch_test_flag(handle, SWITCH_FILE_WRITE_APPEND) || switch_test_flag(handle, SWITCH_FILE_WRITE_OVER)) {
-                       flags |= SWITCH_FOPEN_READ;
-               } else {
-                       flags |= SWITCH_FOPEN_TRUNCATE;
-               }
-       }
-
-       if (switch_test_flag(handle, SWITCH_FILE_FLAG_READ)) {
-               flags |= SWITCH_FOPEN_READ;
-       }
-
        switch_buffer_create_dynamic(&context->audio_buffer, 512, 512, 0);
 
        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "sample rate: %d, channels: %d\n", handle->samplerate, handle->channels);