And add a debug log statement.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2427>
static void
gst_webrtc_data_channel_constructed (GObject * object)
{
- WebRTCDataChannel *channel = WEBRTC_DATA_CHANNEL (object);
+ WebRTCDataChannel *channel;
GstPad *pad;
GstCaps *caps;
+ G_OBJECT_CLASS (parent_class)->constructed (object);
+
+ channel = WEBRTC_DATA_CHANNEL (object);
+ GST_DEBUG ("New channel %p constructed", channel);
+
caps = gst_caps_new_any ();
channel->appsrc = gst_element_factory_make ("appsrc", NULL);