mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 01:45:33 +00:00
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:
parent
47aab6c832
commit
779ca38229
1 changed files with 6 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue