diff options
Diffstat (limited to 'sys/dxr3/dxr3audiosink.c')
-rw-r--r-- | sys/dxr3/dxr3audiosink.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/sys/dxr3/dxr3audiosink.c b/sys/dxr3/dxr3audiosink.c index b72544b2b..53a69636a 100644 --- a/sys/dxr3/dxr3audiosink.c +++ b/sys/dxr3/dxr3audiosink.c @@ -93,7 +93,8 @@ static gboolean dxr3audiosink_open (Dxr3AudioSink * sink); static gboolean dxr3audiosink_set_mode_pcm (Dxr3AudioSink * sink); static gboolean dxr3audiosink_set_mode_ac3 (Dxr3AudioSink * sink); static void dxr3audiosink_close (Dxr3AudioSink * sink); -static void dxr3audiosink_set_clock (GstElement * element, GstClock * clock); +static gboolean dxr3audiosink_set_clock (GstElement * element, + GstClock * clock); static GstPadLinkReturn dxr3audiosink_pcm_sinklink (GstPad * pad, const GstCaps * caps); @@ -148,10 +149,10 @@ dxr3audiosink_base_init (Dxr3AudioSinkClass * klass) { GstElementClass *element_class = GST_ELEMENT_CLASS (klass); - gst_element_class_add_static_pad_template (element_class, - &dxr3audiosink_pcm_sink_factory); - gst_element_class_add_static_pad_template (element_class, - &dxr3audiosink_ac3_sink_factory); + gst_element_class_add_pad_template (element_class, + gst_static_pad_template_get (&dxr3audiosink_pcm_sink_factory)); + gst_element_class_add_pad_template (element_class, + gst_static_pad_template_get (&dxr3audiosink_ac3_sink_factory)); gst_element_class_set_details_simple (element_class, "dxr3/Hollywood+ mpeg decoder board audio plugin", "Audio/Sink", "Feeds audio to Sigma Designs em8300 based boards", @@ -440,12 +441,14 @@ dxr3audiosink_close (Dxr3AudioSink * sink) } -static void +static gboolean dxr3audiosink_set_clock (GstElement * element, GstClock * clock) { Dxr3AudioSink *src = DXR3AUDIOSINK (element); src->clock = clock; + + return GST_ELEMENT_CLASS (parent_class)->set_clock (element, clock); } |