Revise critical section regarding state/pend_state 88/245888/3
authorSangchul Lee <sc11.lee@samsung.com>
Mon, 19 Oct 2020 06:38:25 +0000 (15:38 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Mon, 19 Oct 2020 07:43:53 +0000 (16:43 +0900)
commitba45ce44f595a64c6e4194fe5562b4409754e2f9
treeaf6c0fbfc4d5a576c8363f481d15b3a492dd38e3
parentc03b746b8c60adf2d344e4d9c0addbd4218060d3
Revise critical section regarding state/pend_state

Add codes to lock/unlock mutex during checking state/pend_state
in __ms_bus_cb() and ms_webrtcbin_notify_ice_connection_state_cb().

ms_trigger_state_cb() is added to only invoke the user callback
without locking/unlocking the mutex.

This patch is to fix the bug reported by
 - https://github.sec.samsung.net/tizen/mediastreamer/issues/20

[Issue Type] Bug fix
[Version] 0.1.126

Change-Id: Idb5b66ec47b0491d5dc5e9825158d46ba885249f
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
include/media_streamer_priv.h
packaging/capi-media-streamer.spec
src/media_streamer_gst.c
src/media_streamer_gst_webrtc.c
src/media_streamer_priv.c