mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
gconf: Create the ghostpad of the switchsink from the template
This commit is contained in:
parent
9e92bd7b1a
commit
13b636e7fd
1 changed files with 5 additions and 1 deletions
|
@ -85,7 +85,11 @@ gst_switch_sink_reset (GstSwitchSink * sink)
|
|||
static void
|
||||
gst_switch_sink_init (GstSwitchSink * sink, GstSwitchSinkClass * g_class)
|
||||
{
|
||||
sink->pad = gst_ghost_pad_new_no_target ("sink", GST_PAD_SINK);
|
||||
GstElementClass *eklass = GST_ELEMENT_GET_CLASS (sink);
|
||||
GstPadTemplate *templ;
|
||||
|
||||
templ = gst_element_class_get_pad_template (eklass, "sink");
|
||||
sink->pad = gst_ghost_pad_new_no_target_from_template ("sink", templ);
|
||||
gst_element_add_pad (GST_ELEMENT (sink), sink->pad);
|
||||
|
||||
gst_switch_sink_reset (sink);
|
||||
|
|
Loading…
Reference in a new issue