summaryrefslogtreecommitdiffstats
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
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.
-rw-r--r--ext/sdl/sdlvideosink.c6
-rw-r--r--gst/playondemand/gstplayondemand.c3
2 files changed, 6 insertions, 3 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);
diff --git a/gst/playondemand/gstplayondemand.c b/gst/playondemand/gstplayondemand.c
index 0e8266b2..d0c8a1f2 100644
--- a/gst/playondemand/gstplayondemand.c
+++ b/gst/playondemand/gstplayondemand.c
@@ -269,6 +269,8 @@ play_on_demand_class_init (GstPlayOnDemandClass *klass)
gobject_class->set_property = play_on_demand_set_property;
gobject_class->get_property = play_on_demand_get_property;
+
+ gstelement_class->set_clock = play_on_demand_set_clock;
}
static void
@@ -297,7 +299,6 @@ play_on_demand_init (GstPlayOnDemand *filter)
filter->play_from_beginning = TRUE;
filter->silent = TRUE;
- GST_ELEMENT (filter)->setclockfunc = play_on_demand_set_clock;
filter->clock = NULL;
filter->last_time = 0;