]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9666 #resolve [Remove legacy code when getting an XML video refresh]
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 24 Oct 2016 21:34:57 +0000 (16:34 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 24 Oct 2016 21:34:57 +0000 (16:34 -0500)
src/mod/endpoints/mod_sofia/sofia.c

index cb8982c774d5a8e694b5fa14a6027697e812ec27..fa6307ea339d2d732714f82c6064e2f9823b9f45 100644 (file)
@@ -9253,12 +9253,7 @@ void sofia_handle_sip_i_info(nua_t *nua, sofia_profile_t *profile, nua_handle_t
 
                                if (switch_channel_test_flag(channel, CF_VIDEO)) {
                                        switch_core_media_gen_key_frame(session);
-                                       if (switch_core_session_get_partner(session, &other_session) == SWITCH_STATUS_SUCCESS) {
-                                               sofia_glue_build_vid_refresh_message(other_session, sip->sip_payload->pl_data);
-                                               switch_core_session_rwunlock(other_session);
-                                       } else {
-                                               switch_channel_set_flag(channel, CF_VIDEO_REFRESH_REQ);
-                                       }
+                                       switch_channel_set_flag(channel, CF_VIDEO_REFRESH_REQ);
                                }
 
                        } else if (!strncasecmp(sip->sip_content_type->c_type, "application", 11) &&