From: Sangchul Lee Date: Wed, 21 Apr 2021 06:01:15 +0000 (+0900) Subject: webrtcbin: Call the missing gst_ghost_pad_construct() X-Git-Tag: submit/tizen/20210604.082845^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=824ecad2132c9e608776e373f0861a3cccd26b70;p=platform%2Fupstream%2Fgst-plugins-bad.git webrtcbin: Call the missing gst_ghost_pad_construct() [Version] 1.16.2-14 [Issue Type] Improvement Change-Id: Ia733b9972f72595e7dac175b22983332889b6fcf Signed-off-by: Sangchul Lee --- diff --git a/ext/webrtc/gstwebrtcbin.c b/ext/webrtc/gstwebrtcbin.c index c261c8be0..c79b59daf 100644 --- a/ext/webrtc/gstwebrtcbin.c +++ b/ext/webrtc/gstwebrtcbin.c @@ -313,6 +313,15 @@ gst_webrtc_bin_pad_new (const gchar * name, GstPadDirection direction) direction, "template", template, NULL); gst_object_unref (template); +#ifdef __TIZEN__ + /* FIXME: This can be removed after merging the patch below. + * https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/540 + */ + if (!gst_ghost_pad_construct (GST_GHOST_PAD (pad))) { + gst_object_unref (pad); + return NULL; + } +#endif gst_pad_set_event_function (GST_PAD (pad), gst_webrtcbin_sink_event); GST_DEBUG_OBJECT (pad, "new visible pad with direction %s", diff --git a/packaging/gst-plugins-bad.spec b/packaging/gst-plugins-bad.spec index f4ae56a10..0804f8569 100644 --- a/packaging/gst-plugins-bad.spec +++ b/packaging/gst-plugins-bad.spec @@ -4,7 +4,7 @@ Name: gst-plugins-bad Version: 1.16.2 -Release: 13 +Release: 14 Summary: GStreamer Streaming-Media Framework Plug-Ins License: LGPL-2.0+ Group: Multimedia/Framework