diff options
author | Thibault Saunier <tsaunier@igalia.com> | 2020-01-06 16:30:36 -0300 |
---|---|---|
committer | GStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2020-01-06 20:35:00 +0000 |
commit | 1e5c117c7cc8a08c23d08f9a9113af6a1d6f4f02 (patch) | |
tree | f3809596b000ed1f9a9cd9165f165f383a3b32b6 /gst/debugutils | |
parent | e4daa2ef43106a57645e488c17c7207a316e35b4 (diff) | |
download | gstreamer-plugins-bad-1e5c117c7cc8a08c23d08f9a9113af6a1d6f4f02.tar.gz |
fakevideosink: Use our pad template to create pad
Diffstat (limited to 'gst/debugutils')
-rw-r--r-- | gst/debugutils/gstfakevideosink.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/debugutils/gstfakevideosink.c b/gst/debugutils/gstfakevideosink.c index 0ebec64ef..20b0f77a6 100644 --- a/gst/debugutils/gstfakevideosink.c +++ b/gst/debugutils/gstfakevideosink.c @@ -171,6 +171,7 @@ static void gst_fake_video_sink_init (GstFakeVideoSink * self) { GstElement *child; + GstPadTemplate *template = gst_static_pad_template_get (&sink_factory); child = gst_element_factory_make ("fakesink", "sink"); @@ -184,7 +185,8 @@ gst_fake_video_sink_init (GstFakeVideoSink * self) gst_bin_add (GST_BIN (self), child); - ghost_pad = gst_ghost_pad_new ("sink", sink_pad); + ghost_pad = gst_ghost_pad_new_from_template ("sink", sink_pad, template); + gst_object_unref (template); gst_element_add_pad (GST_ELEMENT (self), ghost_pad); gst_object_unref (sink_pad); |