]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[core] scan-build: Value stored to 'pass_fmtp' is never read - switch_core_media_gen_...
authorDragos Oancea <dragos@signalwire.com>
Wed, 12 Feb 2020 21:15:20 +0000 (21:15 +0000)
committerAndrey Volk <andywolk@gmail.com>
Fri, 6 Mar 2020 15:32:28 +0000 (19:32 +0400)
src/switch_core_media.c

index 2dbea3d818a5ceb181e3268d9862befe21623044..dadc63fd8fc988efa678c8c7587bcf74902cea09 100644 (file)
@@ -10985,7 +10985,6 @@ SWITCH_DECLARE(void) switch_core_media_gen_local_sdp(switch_core_session_t *sess
 
 
                                if (v_engine->codec_negotiated) {
-                                       const char *of;
                                        payload_map_t *pmap;
 
                                        //if (!strcasecmp(v_engine->cur_payload_map->rm_encoding, "VP8")) {
@@ -11007,12 +11006,6 @@ SWITCH_DECLARE(void) switch_core_media_gen_local_sdp(switch_core_session_t *sess
 
                                                pass_fmtp = NULL;
 
-                                               if (switch_channel_get_partner_uuid(session->channel)) {
-                                                       if ((of = switch_channel_get_variable_partner(session->channel, "rtp_video_fmtp"))) {
-                                                               pass_fmtp = of;
-                                                       }
-                                               }
-
                                                if (ov_fmtp) {
                                                        pass_fmtp = ov_fmtp;
                                                } else {