From 824ecad2132c9e608776e373f0861a3cccd26b70 Mon Sep 17 00:00:00 2001 From: Sangchul Lee Date: Wed, 21 Apr 2021 15:01:15 +0900 Subject: [PATCH] webrtcbin: Call the missing gst_ghost_pad_construct() [Version] 1.16.2-14 [Issue Type] Improvement Change-Id: Ia733b9972f72595e7dac175b22983332889b6fcf Signed-off-by: Sangchul Lee --- ext/webrtc/gstwebrtcbin.c | 9 +++++++++ packaging/gst-plugins-bad.spec | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ext/webrtc/gstwebrtcbin.c b/ext/webrtc/gstwebrtcbin.c index c261c8b..c79b59d 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 f4ae56a..0804f85 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 -- 2.7.4