[core] scan-build: video_bridge_thread() - Dereference of null pointer
This commit is contained in:
parent
8126d1f482
commit
cb7db309af
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue