[core] scan-build: video_bridge_thread() - Dereference of null pointer

This commit is contained in:
Dragos Oancea 2019-11-14 08:12:00 +00:00 committed by Andrey Volk
parent 8126d1f482
commit cb7db309af
1 changed files with 2 additions and 2 deletions

View File

@ -233,8 +233,8 @@ static void video_bridge_thread(switch_core_session_t *session, void *obj)
}
if (switch_test_flag(read_frame, SFF_CNG) ||
switch_channel_test_flag(channel, CF_LEG_HOLDING) || switch_channel_test_flag(b_channel, CF_VIDEO_READ_FILE_ATTACHED)) {
if (read_frame && (switch_test_flag(read_frame, SFF_CNG) ||
switch_channel_test_flag(channel, CF_LEG_HOLDING) || switch_channel_test_flag(b_channel, CF_VIDEO_READ_FILE_ATTACHED))) {
continue;
}