diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2002-11-27 20:54:43 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2002-11-27 20:54:43 +0000 |
commit | c2758dbd001e4cad2e12ef831b4dd5bf12e211a2 (patch) | |
tree | 69cbe0759c9cd196bfcbee16e71e2801ab8c4caf /gst/udp/gstudpsink.c | |
parent | 22f377d88b0c6a950c8c48fa327c9970fed843ed (diff) |
Moved clock set/get to class functions.
Original commit message from CVS:
Moved clock set/get to class functions.
Diffstat (limited to 'gst/udp/gstudpsink.c')
-rw-r--r-- | gst/udp/gstudpsink.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/udp/gstudpsink.c b/gst/udp/gstudpsink.c index 785e3c8d..3ed5271d 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 |