mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
Moved clock set/get to class functions.
Original commit message from CVS: Moved clock set/get to class functions.
This commit is contained in:
parent
22f377d88b
commit
c2758dbd00
3 changed files with 8 additions and 6 deletions
|
@ -72,6 +72,7 @@ GST_PAD_TEMPLATE_FACTORY (sink_template,
|
|||
static void gst_aasink_class_init (GstAASinkClass *klass);
|
||||
static void gst_aasink_init (GstAASink *aasink);
|
||||
|
||||
static void gst_aasink_set_clock (GstElement *element, GstClock *clock);
|
||||
static void gst_aasink_chain (GstPad *pad, GstBuffer *buf);
|
||||
|
||||
static void gst_aasink_set_property (GObject *object, guint prop_id,
|
||||
|
@ -231,6 +232,7 @@ gst_aasink_class_init (GstAASinkClass *klass)
|
|||
G_TYPE_UINT, G_TYPE_UINT);
|
||||
|
||||
gstelement_class->change_state = gst_aasink_change_state;
|
||||
gstelement_class->set_clock = gst_aasink_set_clock;
|
||||
}
|
||||
|
||||
static GstPadConnectReturn
|
||||
|
@ -287,7 +289,6 @@ gst_aasink_init (GstAASink *aasink)
|
|||
aasink->height = -1;
|
||||
|
||||
aasink->clock = NULL;
|
||||
GST_ELEMENT (aasink)->setclockfunc = gst_aasink_set_clock;
|
||||
|
||||
GST_FLAG_SET(aasink, GST_ELEMENT_THREAD_SUGGESTED);
|
||||
}
|
||||
|
|
|
@ -69,6 +69,8 @@ gst_udpsink_control_get_type(void) {
|
|||
static void gst_udpsink_class_init (GstUDPSink *klass);
|
||||
static void gst_udpsink_init (GstUDPSink *udpsink);
|
||||
|
||||
static void gst_udpsink_set_clock (GstElement *element, GstClock *clock);
|
||||
|
||||
static void gst_udpsink_chain (GstPad *pad,GstBuffer *buf);
|
||||
static GstElementStateReturn gst_udpsink_change_state (GstElement *element);
|
||||
|
||||
|
@ -130,6 +132,7 @@ gst_udpsink_class_init (GstUDPSink *klass)
|
|||
gobject_class->get_property = gst_udpsink_get_property;
|
||||
|
||||
gstelement_class->change_state = gst_udpsink_change_state;
|
||||
gstelement_class->set_clock = gst_udpsink_set_clock;
|
||||
}
|
||||
|
||||
|
||||
|
@ -244,8 +247,6 @@ gst_udpsink_init (GstUDPSink *udpsink)
|
|||
udpsink->control = CONTROL_UDP;
|
||||
|
||||
udpsink->clock = NULL;
|
||||
|
||||
GST_ELEMENT (udpsink)->setclockfunc = gst_udpsink_set_clock;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -205,6 +205,9 @@ gst_osssink_class_init (GstOssSinkClass *klass)
|
|||
|
||||
gstelement_class->change_state = GST_DEBUG_FUNCPTR (gst_osssink_change_state);
|
||||
gstelement_class->query = GST_DEBUG_FUNCPTR (gst_osssink_query);
|
||||
gstelement_class->set_clock = gst_osssink_set_clock;
|
||||
gstelement_class->get_clock = gst_osssink_get_clock;
|
||||
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -241,9 +244,6 @@ gst_osssink_init (GstOssSink *osssink)
|
|||
osssink->provided_clock = GST_CLOCK (gst_oss_clock_new ("ossclock", gst_osssink_get_time, osssink));
|
||||
osssink->handled = 0;
|
||||
|
||||
GST_ELEMENT (osssink)->setclockfunc = gst_osssink_set_clock;
|
||||
GST_ELEMENT (osssink)->getclockfunc = gst_osssink_get_clock;
|
||||
|
||||
GST_FLAG_SET (osssink, GST_ELEMENT_THREAD_SUGGESTED);
|
||||
GST_FLAG_SET (osssink, GST_ELEMENT_EVENT_AWARE);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue