webrtc_sink_snapshot: Create queue before creating convert thread 16/286116/1 accepted/tizen/7.0/unified/20221229.170958
authorSangchul Lee <sc11.lee@samsung.com>
Wed, 28 Dec 2022 05:26:20 +0000 (14:26 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Wed, 28 Dec 2022 07:43:45 +0000 (07:43 +0000)
commit3c5a06f45652e407947b51f529a756144cba6bf4
treeb04c3a43306ece05fe9bc0929c7db1a5c7917615
parent2e048ad55b93082ba4fcc7523ac00a5161d32b57
webrtc_sink_snapshot: Create queue before creating convert thread

Sometimes the new thread tries to access queue not created yet which causes
a crash. It is fixed to create queue first and then create thread as well as
check if the result of pop operation is NULL.

[Version] 0.3.275
[Issue Type] Crash

Change-Id: Icefd4d6d9b38141384fbc70b3a7097a6f674fd4d
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
packaging/capi-media-webrtc.spec
src/webrtc_sink_snapshot.c