From: Seven Du Date: Fri, 3 Jul 2020 02:47:03 +0000 (+0800) Subject: [mod_dptools] early video decode and debug X-Git-Tag: v1.10.6^2~113^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F997%2Fhead;p=thirdparty%2Ffreeswitch.git [mod_dptools] early video decode and debug --- diff --git a/src/mod/applications/mod_dptools/mod_dptools.c b/src/mod/applications/mod_dptools/mod_dptools.c index 176b38074c..de704a177d 100644 --- a/src/mod/applications/mod_dptools/mod_dptools.c +++ b/src/mod/applications/mod_dptools/mod_dptools.c @@ -1401,6 +1401,12 @@ SWITCH_STANDARD_APP(answer_function) if (switch_stristr("is_conference", arg)) { switch_channel_set_flag(channel, CF_CONFERENCE); } + if (switch_stristr("decode_video", arg)) { + switch_channel_set_flag_recursive(channel, CF_VIDEO_DECODED_READ); + } + if (switch_stristr("debug_video", arg)) { + switch_channel_set_flag_recursive(channel, CF_VIDEO_DEBUG_READ); + } } switch_channel_answer(channel);