webrtcbin: Return typed "sctp-transport"
authorJohan Sternerup <johast@axis.com>
Mon, 10 May 2021 10:02:20 +0000 (12:02 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 25 Aug 2021 13:20:22 +0000 (13:20 +0000)
With GstWebRTCSCTPTransport type exposed we can now define
"sctp-transport" property as being of this type.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2214>

docs/plugins/gst_plugins_cache.json
ext/webrtc/gstwebrtcbin.c

index 86dd1c5..7385b7b 100644 (file)
                         "controllable": false,
                         "mutable": "null",
                         "readable": true,
-                        "type": "GstObject",
+                        "type": "GstWebRTCSCTPTransport",
                         "writable": false
                     },
                     "signaling-state": {
index 0e585bb..fe48300 100644 (file)
@@ -7206,7 +7206,8 @@ gst_webrtc_bin_class_init (GstWebRTCBinClass * klass)
       PROP_SCTP_TRANSPORT,
       g_param_spec_object ("sctp-transport", "WebRTC SCTP Transport",
           "The WebRTC SCTP Transport",
-          GST_TYPE_OBJECT, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
+          GST_TYPE_WEBRTC_SCTP_TRANSPORT,
+          G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
   /**
    * GstWebRTCBin::create-offer: