From 779ca38229103e342dc6055b4903e7e073e6c076 Mon Sep 17 00:00:00 2001 From: Philippe Normand Date: Mon, 16 May 2022 16:43:57 +0100 Subject: [PATCH] webrtcdatachannel: Chain to parent class constructed And add a debug log statement. Part-of: --- subprojects/gst-plugins-bad/ext/webrtc/webrtcdatachannel.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/ext/webrtc/webrtcdatachannel.c b/subprojects/gst-plugins-bad/ext/webrtc/webrtcdatachannel.c index 89fbd7c01a..0ce3368076 100644 --- a/subprojects/gst-plugins-bad/ext/webrtc/webrtcdatachannel.c +++ b/subprojects/gst-plugins-bad/ext/webrtc/webrtcdatachannel.c @@ -966,10 +966,15 @@ on_appsrc_data (GstPad * pad, GstPadProbeInfo * info, gpointer user_data) 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);