[gst-cvs] gstreamer: fakesink: use method to set sync property
Wim Taymans
wtay at kemper.freedesktop.org
Mon Jun 14 07:52:32 PDT 2010
Module: gstreamer
Branch: master
Commit: 4a5552bf15924d959fe9faa0292208e98a139a07
URL: http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=4a5552bf15924d959fe9faa0292208e98a139a07
Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date: Mon Jun 14 16:51:39 2010 +0200
fakesink: use method to set sync property
Use the basesink method to configure the sync property instead of poking the
parent structure.
---
plugins/elements/gstfakesink.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/plugins/elements/gstfakesink.c b/plugins/elements/gstfakesink.c
index 0ef658c..1691908 100644
--- a/plugins/elements/gstfakesink.c
+++ b/plugins/elements/gstfakesink.c
@@ -262,12 +262,13 @@ gst_fake_sink_init (GstFakeSink * fakesink, GstFakeSinkClass * g_class)
{
fakesink->silent = DEFAULT_SILENT;
fakesink->dump = DEFAULT_DUMP;
- GST_BASE_SINK (fakesink)->sync = DEFAULT_SYNC;
fakesink->last_message = g_strdup (DEFAULT_LAST_MESSAGE);
fakesink->state_error = DEFAULT_STATE_ERROR;
fakesink->signal_handoffs = DEFAULT_SIGNAL_HANDOFFS;
fakesink->num_buffers = DEFAULT_NUM_BUFFERS;
g_static_rec_mutex_init (&fakesink->notify_lock);
+
+ gst_base_sink_set_sync (GST_BASE_SINK (fakesink), DEFAULT_SYNC);
}
static void
More information about the Gstreamer-commits
mailing list