]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10241 push similar logic upstream
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 19 Apr 2017 21:30:41 +0000 (16:30 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 19 Apr 2017 21:30:41 +0000 (16:30 -0500)
src/switch_core_media.c

index c88da8d39769f2e4dbad82c93426ab322674440c..a4e3821066416bd51541d9be2fde9aa73993240c 100644 (file)
@@ -13718,7 +13718,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_request_video_refresh(switch
                return SWITCH_STATUS_FALSE;
        }
 
-       if (switch_channel_test_flag(channel, CF_VIDEO)) {
+       if (switch_channel_media_up(channel) && switch_channel_test_flag(channel, CF_VIDEO)) {
                switch_core_session_message_t msg = { 0 };
                switch_time_t now = switch_micro_time_now();