]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8545 read lock regression
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 18 Nov 2015 19:18:39 +0000 (13:18 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 18 Nov 2015 19:18:39 +0000 (13:18 -0600)
src/mod/applications/mod_conference/conference_video.c

index bf5c9fff32c5413c42f0980656cef3e446d36798..bc51f5e0009582ffe2143287d6f1b3341c685359 100644 (file)
@@ -1274,6 +1274,7 @@ void conference_video_write_canvas_image_to_codec_group(conference_obj_t *confer
                                }
 
                                if (switch_core_session_media_flow(imember->session, SWITCH_MEDIA_TYPE_VIDEO) == SWITCH_MEDIA_FLOW_RECVONLY) {
+                                       switch_core_session_rwunlock(imember->session);
                                        continue;
                                }
 
@@ -2731,6 +2732,7 @@ void *SWITCH_THREAD_FUNC conference_video_muxing_thread_run(switch_thread_t *thr
                                }
 
                                if (switch_core_session_media_flow(imember->session, SWITCH_MEDIA_TYPE_VIDEO) == SWITCH_MEDIA_FLOW_RECVONLY) {
+                                       switch_core_session_rwunlock(imember->session);
                                        continue;
                                }
 
@@ -3080,6 +3082,7 @@ void *SWITCH_THREAD_FUNC conference_video_super_muxing_thread_run(switch_thread_
                        }
 
                        if (switch_core_session_media_flow(imember->session, SWITCH_MEDIA_TYPE_VIDEO) == SWITCH_MEDIA_FLOW_RECVONLY) {
+                               switch_core_session_rwunlock(imember->session);
                                continue;
                        }