diff --git a/ext/aalib/gstaasink.c b/ext/aalib/gstaasink.c index 7ff745d2bd..ad255fa23b 100644 --- a/ext/aalib/gstaasink.c +++ b/ext/aalib/gstaasink.c @@ -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); } diff --git a/gst/udp/gstudpsink.c b/gst/udp/gstudpsink.c index 785e3c8d09..3ed5271d93 100644 --- a/gst/udp/gstudpsink.c +++ b/gst/udp/gstudpsink.c @@ -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 diff --git a/sys/oss/gstosssink.c b/sys/oss/gstosssink.c index 94561540f2..66e5b61b43 100644 --- a/sys/oss/gstosssink.c +++ b/sys/oss/gstosssink.c @@ -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); }