[Core] switch_core_session_write_video_frame: Coverity 1546433 Check of thread-shared field evades lock acquisition
This commit is contained in:
parent
4f2f668466
commit
6524cb0ab2
|
@ -14675,7 +14675,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_write_video_frame(switch_cor
|
||||||
switch_codec_t *codec = switch_core_session_get_video_write_codec(session);
|
switch_codec_t *codec = switch_core_session_get_video_write_codec(session);
|
||||||
switch_timer_t *timer;
|
switch_timer_t *timer;
|
||||||
switch_media_handle_t *smh;
|
switch_media_handle_t *smh;
|
||||||
switch_image_t *dup_img = NULL, *img = frame->img;
|
switch_image_t *dup_img = NULL, *img = NULL;
|
||||||
switch_status_t encode_status;
|
switch_status_t encode_status;
|
||||||
switch_frame_t write_frame = {0};
|
switch_frame_t write_frame = {0};
|
||||||
switch_rtp_engine_t *v_engine = NULL;
|
switch_rtp_engine_t *v_engine = NULL;
|
||||||
|
@ -14736,6 +14736,8 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_write_video_frame(switch_cor
|
||||||
smh->video_last_key_time = now;
|
smh->video_last_key_time = now;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
img = frame->img;
|
||||||
|
|
||||||
if (!img) {
|
if (!img) {
|
||||||
switch_status_t vstatus;
|
switch_status_t vstatus;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue