return;
}
+ if (!v_engine->media_thread) {
+ return;
+ }
+
if (!v_engine->mh.cond_mutex) {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_WARNING, "Channel %s has no cond?\n",
switch_channel_get_name(session->channel));
case CS_HANGUP: /* Deactivate and end the thread */
{
switch_core_session_hangup_state(session, SWITCH_TRUE);
+ if (switch_channel_test_flag(session->channel, CF_VIDEO)) {
+ switch_core_session_wake_video_thread(session);
+ }
switch_channel_set_state(session->channel, CS_REPORTING);
}