From 58ba5ec0aced95508793c3c1ee62d8f73b095bf9 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 19 Jun 2015 13:55:26 -0500 Subject: [PATCH] mod_av avformat remove unused code --- src/mod/applications/mod_av/avformat.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/mod/applications/mod_av/avformat.c b/src/mod/applications/mod_av/avformat.c index 2448d04a39..adeaee0318 100644 --- a/src/mod/applications/mod_av/avformat.c +++ b/src/mod/applications/mod_av/avformat.c @@ -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);