webrtcbin: Call the missing gst_ghost_pad_construct() 03/257203/3 accepted/tizen/unified/20210607.124422 submit/tizen/20210604.082845
authorSangchul Lee <sc11.lee@samsung.com>
Wed, 21 Apr 2021 06:01:15 +0000 (15:01 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Thu, 3 Jun 2021 07:39:27 +0000 (16:39 +0900)
[Version] 1.16.2-14
[Issue Type] Improvement

Change-Id: Ia733b9972f72595e7dac175b22983332889b6fcf
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
ext/webrtc/gstwebrtcbin.c
packaging/gst-plugins-bad.spec

index c261c8b..c79b59d 100644 (file)
@@ -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",
index f4ae56a..0804f85 100644 (file)
@@ -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