[Version] 1.1.36
[Issue Type] Coverity defect
Change-Id: I220c49e058ee0ac90da7e499bb701f397005b615
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Name: capi-media-webrtc
Summary: A WebRTC library in Tizen Native API
-Version: 1.1.35
+Version: 1.1.36
Release: 0
Group: Multimedia/API
License: Apache-2.0
} else {
int ret = WEBRTC_ERROR_NONE;
- gst_bin_add(GST_BIN(source->av[idx].render.pipeline), appsrc);
+ if (!gst_bin_add(GST_BIN(source->av[idx].render.pipeline), appsrc)) {
+ LOG_ERROR("failed to gst_bin_add(), adding [%s] to [%s]", GST_ELEMENT_NAME(appsrc), GST_ELEMENT_NAME(source->av[idx].render.pipeline));
+ gst_object_unref(GST_OBJECT(appsrc));
+ goto error;
+ }
if (type == MEDIA_TYPE_AUDIO)
ret = __build_loopback_audiosink(source, appsrc);