chain up in set_clock

This commit is contained in:
Wim Taymans 2011-11-10 12:11:21 +01:00
parent d9613e5d82
commit 8546951222
8 changed files with 22 additions and 12 deletions

View file

@ -71,7 +71,7 @@ static void play_on_demand_finalize (GObject * object);
static GstPadLinkReturn play_on_demand_pad_link (GstPad * pad, static GstPadLinkReturn play_on_demand_pad_link (GstPad * pad,
const GstCaps * caps); const GstCaps * caps);
static void play_on_demand_loop (GstElement * elem); static void play_on_demand_loop (GstElement * elem);
static void play_on_demand_set_clock (GstElement * elem, GstClock * clock); static gboolean play_on_demand_set_clock (GstElement * elem, GstClock * clock);
/* signal handlers */ /* signal handlers */
static void play_on_demand_play_handler (GstElement * elem); static void play_on_demand_play_handler (GstElement * elem);
@ -463,7 +463,7 @@ play_on_demand_loop (GstElement * elem)
} }
} }
static void static gboolean
play_on_demand_set_clock (GstElement * elem, GstClock * clock) play_on_demand_set_clock (GstElement * elem, GstClock * clock)
{ {
GstPlayOnDemand *filter; GstPlayOnDemand *filter;
@ -473,6 +473,8 @@ play_on_demand_set_clock (GstElement * elem, GstClock * clock)
filter = GST_PLAYONDEMAND (elem); filter = GST_PLAYONDEMAND (elem);
filter->clock = clock; filter->clock = clock;
return GST_ELEMENT_CLASS (parent_class)->set_clock (elem, clock);
} }
static void static void

View file

@ -546,7 +546,7 @@ static gboolean
gst_decklink_sink_set_clock (GstElement * element, GstClock * clock) gst_decklink_sink_set_clock (GstElement * element, GstClock * clock)
{ {
return TRUE; return GST_ELEMENT_CLASS (parent_class)->set_clock (element, clock);
} }
static GstIndex * static GstIndex *

View file

@ -728,7 +728,7 @@ static gboolean
gst_decklink_src_set_clock (GstElement * element, GstClock * clock) gst_decklink_src_set_clock (GstElement * element, GstClock * clock)
{ {
return TRUE; return GST_ELEMENT_CLASS (parent_class)->set_clock (element, clock);
} }
static GstIndex * static GstIndex *

View file

@ -93,7 +93,8 @@ static gboolean dxr3audiosink_open (Dxr3AudioSink * sink);
static gboolean dxr3audiosink_set_mode_pcm (Dxr3AudioSink * sink); static gboolean dxr3audiosink_set_mode_pcm (Dxr3AudioSink * sink);
static gboolean dxr3audiosink_set_mode_ac3 (Dxr3AudioSink * sink); static gboolean dxr3audiosink_set_mode_ac3 (Dxr3AudioSink * sink);
static void dxr3audiosink_close (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, static GstPadLinkReturn dxr3audiosink_pcm_sinklink (GstPad * pad,
const GstCaps * caps); const GstCaps * caps);
@ -440,12 +441,14 @@ dxr3audiosink_close (Dxr3AudioSink * sink)
} }
static void static gboolean
dxr3audiosink_set_clock (GstElement * element, GstClock * clock) dxr3audiosink_set_clock (GstElement * element, GstClock * clock)
{ {
Dxr3AudioSink *src = DXR3AUDIOSINK (element); Dxr3AudioSink *src = DXR3AUDIOSINK (element);
src->clock = clock; src->clock = clock;
return GST_ELEMENT_CLASS (parent_class)->set_clock (element, clock);
} }

View file

@ -72,7 +72,7 @@ static void dxr3spusink_get_property (GObject * object,
static gboolean dxr3spusink_open (Dxr3SpuSink * sink); static gboolean dxr3spusink_open (Dxr3SpuSink * sink);
static void dxr3spusink_close (Dxr3SpuSink * sink); static void dxr3spusink_close (Dxr3SpuSink * sink);
static void dxr3spusink_set_clock (GstElement * element, GstClock * clock); static gboolean dxr3spusink_set_clock (GstElement * element, GstClock * clock);
static gboolean dxr3spusink_handle_event (GstPad * pad, GstEvent * event); static gboolean dxr3spusink_handle_event (GstPad * pad, GstEvent * event);
static void dxr3spusink_chain (GstPad * pad, GstData * _data); static void dxr3spusink_chain (GstPad * pad, GstData * _data);
@ -305,12 +305,14 @@ dxr3spusink_close (Dxr3SpuSink * sink)
} }
static void static gboolean
dxr3spusink_set_clock (GstElement * element, GstClock * clock) dxr3spusink_set_clock (GstElement * element, GstClock * clock)
{ {
Dxr3SpuSink *src = DXR3SPUSINK (element); Dxr3SpuSink *src = DXR3SPUSINK (element);
src->clock = clock; src->clock = clock;
return GST_ELEMENT_CLASS (element)->set_clock (element, clock);
} }

View file

@ -96,7 +96,8 @@ static void dxr3videosink_get_property (GObject * object,
static gboolean dxr3videosink_open (Dxr3VideoSink * sink); static gboolean dxr3videosink_open (Dxr3VideoSink * sink);
static void dxr3videosink_close (Dxr3VideoSink * sink); static void dxr3videosink_close (Dxr3VideoSink * sink);
static void dxr3videosink_set_clock (GstElement * element, GstClock * clock); static gboolean dxr3videosink_set_clock (GstElement * element,
GstClock * clock);
static void dxr3videosink_reset_parser (Dxr3VideoSink * sink); static void dxr3videosink_reset_parser (Dxr3VideoSink * sink);
static int dxr3videosink_next_start_code (Dxr3VideoSink * sink); static int dxr3videosink_next_start_code (Dxr3VideoSink * sink);
@ -308,12 +309,14 @@ dxr3videosink_close (Dxr3VideoSink * sink)
} }
static void static gboolean
dxr3videosink_set_clock (GstElement * element, GstClock * clock) dxr3videosink_set_clock (GstElement * element, GstClock * clock)
{ {
Dxr3VideoSink *src = DXR3VIDEOSINK (element); Dxr3VideoSink *src = DXR3VIDEOSINK (element);
src->clock = clock; src->clock = clock;
return GST_ELEMENT_CLASS (parent_class)->set_clock (element, clock);
} }

View file

@ -753,7 +753,7 @@ gst_ks_video_src_set_clock (GstElement * element, GstClock * clock)
gst_ks_clock_provide_master_clock (priv->ksclock, clock); gst_ks_clock_provide_master_clock (priv->ksclock, clock);
GST_OBJECT_UNLOCK (element); GST_OBJECT_UNLOCK (element);
return TRUE; return GST_ELEMENT_CLASS (element)->set_clock (element, clock);
} }
static GstCaps * static GstCaps *

View file

@ -97,7 +97,7 @@ static gboolean
gst_replace_set_clock (GstElement * element, GstClock * clock) gst_replace_set_clock (GstElement * element, GstClock * clock)
{ {
return TRUE; return GST_ELEMENT_CLASS (parent_class)->set_clock (element, clock);
} }
static GstIndex * static GstIndex *