summaryrefslogtreecommitdiffstats
path: root/ext/sdl
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2002-11-27 20:54:42 +0000
committerWim Taymans <wim.taymans@gmail.com>2002-11-27 20:54:42 +0000
commit15c9d99874199c62e397096273aca6a24bd33d30 (patch)
tree0be663aeaf1294d6893c49a4271f9717ddf562b1 /ext/sdl
parent56d167f25ce2ca5ca75395ca25803fe766e9a4e5 (diff)
downloadgst-plugins-bad-15c9d99874199c62e397096273aca6a24bd33d30.tar.gz
gst-plugins-bad-15c9d99874199c62e397096273aca6a24bd33d30.tar.bz2
gst-plugins-bad-15c9d99874199c62e397096273aca6a24bd33d30.zip
Moved clock set/get to class functions.
Original commit message from CVS: Moved clock set/get to class functions.
Diffstat (limited to 'ext/sdl')
-rw-r--r--ext/sdl/sdlvideosink.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/sdl/sdlvideosink.c b/ext/sdl/sdlvideosink.c
index a8b72b28..24646775 100644
--- a/ext/sdl/sdlvideosink.c
+++ b/ext/sdl/sdlvideosink.c
@@ -60,6 +60,8 @@ enum {
static void gst_sdlvideosink_class_init (GstSDLVideoSinkClass *klass);
static void gst_sdlvideosink_init (GstSDLVideoSink *sdlvideosink);
+static void gst_sdlvideosink_set_clock (GstElement *element, GstClock *clock);
+
static gboolean gst_sdlvideosink_create (GstSDLVideoSink *sdlvideosink,
gboolean showlogo);
static GstPadConnectReturn gst_sdlvideosink_sinkconnect (GstPad *pad,
@@ -152,6 +154,7 @@ gst_sdlvideosink_class_init (GstSDLVideoSinkClass *klass)
gstelement_class->change_state = gst_sdlvideosink_change_state;
+ gstelement_class->set_clock = gst_sdlvideosink_set_clock;
}
@@ -188,7 +191,6 @@ gst_sdlvideosink_init (GstSDLVideoSink *sdlvideosink)
sdlvideosink->capslist = capslist;
sdlvideosink->clock = NULL;
- GST_ELEMENT (sdlvideosink)->setclockfunc = gst_sdlvideosink_set_clock;
GST_FLAG_SET(sdlvideosink, GST_ELEMENT_THREAD_SUGGESTED);
GST_FLAG_SET(sdlvideosink, GST_ELEMENT_EVENT_AWARE);
@@ -433,7 +435,7 @@ gst_sdlvideosink_chain (GstPad *pad, GstBuffer *buf)
case GST_EVENT_DISCONTINUOUS:
offset = GST_EVENT_DISCONT_OFFSET (event, 0).value;
g_print ("sdl discont %lld\n", offset);
- gst_clock_handle_discont (sdlvideosink->clock, (guint64) GST_EVENT_DISCONT_OFFSET (event, 0).value);
+ //gst_clock_handle_discont (sdlvideosink->clock, (guint64) GST_EVENT_DISCONT_OFFSET (event, 0).value);
break;
default:
gst_pad_event_default (pad, event);