From: Sangchul Lee Date: Mon, 26 Jul 2021 05:55:07 +0000 (+0900) Subject: webrtc_test: Change src_pipeline state to NULL before calling g_clear_object() X-Git-Tag: submit/tizen/20210729.023123~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bc9021c99b1f0ba9cf0f503dd880e3f6b2507bbd;p=platform%2Fcore%2Fapi%2Fwebrtc.git webrtc_test: Change src_pipeline state to NULL before calling g_clear_object() [Version] 0.2.59 [Issue Type] Bug fix Change-Id: I43557965d3e64b7ad7c248a909b2f2d9d7c97e06 Signed-off-by: Sangchul Lee --- diff --git a/packaging/capi-media-webrtc.spec b/packaging/capi-media-webrtc.spec index 9fe045cf..41158285 100644 --- a/packaging/capi-media-webrtc.spec +++ b/packaging/capi-media-webrtc.spec @@ -1,6 +1,6 @@ Name: capi-media-webrtc Summary: A WebRTC library in Tizen Native API -Version: 0.2.58 +Version: 0.2.59 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/test/webrtc_test.c b/test/webrtc_test.c index 0cfa3563..344f4eba 100644 --- a/test/webrtc_test.c +++ b/test/webrtc_test.c @@ -387,8 +387,10 @@ static void __release_packet_source(int conn_idx, unsigned int source_idx) gst_object_unref(packet_source->bus); packet_source->bus = NULL; } - g_clear_object(&packet_source->src_pipeline); - packet_source->src_pipeline = NULL; + if (packet_source->src_pipeline) { + gst_element_set_state(packet_source->src_pipeline, GST_STATE_NULL); + g_clear_object(&packet_source->src_pipeline); + } g_mutex_clear(&packet_source->mutex); g_cond_clear(&packet_source->cond);