summaryrefslogtreecommitdiff
path: root/sys/decklink/gstdecklinksink.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sys/decklink/gstdecklinksink.cpp')
-rw-r--r--sys/decklink/gstdecklinksink.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/decklink/gstdecklinksink.cpp b/sys/decklink/gstdecklinksink.cpp
index bc24cfefe..922419774 100644
--- a/sys/decklink/gstdecklinksink.cpp
+++ b/sys/decklink/gstdecklinksink.cpp
@@ -158,10 +158,10 @@ gst_decklink_sink_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
- gst_element_class_add_static_pad_template (element_class,
- &gst_decklink_sink_videosink_template);
- gst_element_class_add_static_pad_template (element_class,
- &gst_decklink_sink_audiosink_template);
+ gst_element_class_add_pad_template (element_class,
+ gst_static_pad_template_get (&gst_decklink_sink_videosink_template));
+ gst_element_class_add_pad_template (element_class,
+ gst_static_pad_template_get (&gst_decklink_sink_audiosink_template));
gst_element_class_set_details_simple (element_class, "Decklink Sink",
"Video/Sink", "Decklink Sink", "David Schleef <ds@entropywave.com>");
@@ -546,7 +546,7 @@ static gboolean
gst_decklink_sink_set_clock (GstElement * element, GstClock * clock)
{
- return TRUE;
+ return GST_ELEMENT_CLASS (parent_class)->set_clock (element, clock);
}
static GstIndex *