webrtcdatachannel: Chain to parent class constructed

And add a debug log statement.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2427>
This commit is contained in:
Philippe Normand 2022-05-16 16:43:57 +01:00 committed by GStreamer Marge Bot
parent 47aab6c832
commit 779ca38229

View file

@ -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);