FS-9267 fix regression

This commit is contained in:
Brian West 2016-07-05 13:27:36 -05:00
parent 7f623fc0c8
commit 0ab9f5156e
1 changed files with 6 additions and 4 deletions

View File

@ -11727,11 +11727,13 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_read_video_frame(switch_core
} }
} }
if ((*frame)->codec) {
if (patchers) { if (patchers) {
switch_set_flag((*frame)->codec, SWITCH_CODEC_FLAG_VIDEO_PATCHING); switch_set_flag((*frame)->codec, SWITCH_CODEC_FLAG_VIDEO_PATCHING);
} else { } else {
switch_clear_flag((*frame)->codec, SWITCH_CODEC_FLAG_VIDEO_PATCHING); switch_clear_flag((*frame)->codec, SWITCH_CODEC_FLAG_VIDEO_PATCHING);
} }
}
if (status == SWITCH_STATUS_SUCCESS) { if (status == SWITCH_STATUS_SUCCESS) {
switch_core_session_video_read_callback(session, *frame); switch_core_session_video_read_callback(session, *frame);