From 46f4fda018637197dd19a9ed985fc29e7b1a5c87 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Thu, 19 May 2016 15:31:03 -0500 Subject: [PATCH] remove extra condition code that can never be called --- src/switch_core_media.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/switch_core_media.c b/src/switch_core_media.c index 8a25514604..5ff0a3afa6 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -2704,11 +2704,6 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_write_frame(switch_core_sessio return SWITCH_STATUS_GENERR; } - - if (!engine->read_codec.implementation || !switch_core_codec_ready(&engine->read_codec)) { - return SWITCH_STATUS_FALSE; - } - if (!switch_test_flag(frame, SFF_CNG) && !switch_test_flag(frame, SFF_PROXY_PACKET)) { if (engine->read_impl.encoded_bytes_per_packet) { bytes = engine->read_impl.encoded_bytes_per_packet;