Merge pull request #422 from signalwire/mod_png

[mod_png] Remove unused variable.
This commit is contained in:
Andrey Volk 2020-02-26 23:39:28 +04:00 committed by GitHub
commit e3e4326b63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 5 deletions

View File

@ -60,7 +60,6 @@ static switch_status_t png_file_open(switch_file_handle_t *handle, const char *p
{ {
png_file_context_t *context; png_file_context_t *context;
char *ext; char *ext;
unsigned int flags = 0;
if ((ext = strrchr((char *)path, '.')) == 0) { if ((ext = strrchr((char *)path, '.')) == 0) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid Format\n"); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid Format\n");
@ -76,10 +75,6 @@ static switch_status_t png_file_open(switch_file_handle_t *handle, const char *p
return SWITCH_STATUS_GENERR; return SWITCH_STATUS_GENERR;
} }
if (switch_test_flag(handle, SWITCH_FILE_FLAG_READ)) {
flags |= SWITCH_FOPEN_READ;
}
memset(context, 0, sizeof(png_file_context_t)); memset(context, 0, sizeof(png_file_context_t));
context->max = 10000; context->max = 10000;
switch_mutex_init(&context->mutex, SWITCH_MUTEX_NESTED, handle->memory_pool); switch_mutex_init(&context->mutex, SWITCH_MUTEX_NESTED, handle->memory_pool);