+2005-09-20 Thomas Vander Stichele <thomas at apestaart dot org>
+
+ * check/gst/gstevent.c:
+ * gst/elements/gstfakesink.c:
+ * gst/elements/gstfakesink.h:
+ remove the sync property from fakesink.
+ has the side effect of setting sync TRUE
+ for fakesink, which is a change. Anyone who knows how
+ to fix this nicely in a GObject-y way, feel free.
+
2005-09-20 Stefan Kost <ensonic@users.sf.net>
* docs/gst/gstreamer-docs.sgml:
- remove probe refsection
+ remove probe refsection
2005-09-20 Stefan Kost <ensonic@users.sf.net>
* check/Makefile.am:
- disable valgrinding the controller test again
+ disable valgrinding the controller test again
* docs/gst/gstreamer-sections.txt:
- update for api-changes
+ update for api-changes
2005-09-20 Wim Taymans <wim@fluendo.com>
gst_bin_add_many (pipeline, fakesrc, queue, fakesink, NULL);
fail_unless (gst_element_link_many (fakesrc, queue, fakesink, NULL));
+ g_object_set (G_OBJECT (fakesink), "sync", FALSE, NULL);
+
/* Send 100 buffers per sec */
g_object_set (G_OBJECT (fakesrc), "silent", TRUE, "datarate", 100,
"sizemax", 1, "sizetype", 2, NULL);
<!-- basic object functions -->
-<!-- ##### SECTION Stability_Level ##### -->
-
-
<!-- ##### STRUCT GstElement ##### -->
<para>
</para>
-<!-- ##### SECTION Stability_Level ##### -->
-
-
</para>
-<!-- ##### SECTION Stability_Level ##### -->
-
-
<!-- ##### STRUCT GstImplementsInterface ##### -->
<para>
#GstIndexFactory
</para>
-<!-- ##### SECTION Stability_Level ##### -->
-
-
<!-- ##### STRUCT GstIndex ##### -->
<para>
#GstIndex
</para>
-<!-- ##### SECTION Stability_Level ##### -->
-
-
<!-- ##### STRUCT GstIndexFactory ##### -->
<para>
The GstIndexFactory object
and environment variables that affect the debugging output.
</para>
-<!-- ##### SECTION Stability_Level ##### -->
-
-
<!-- ##### ENUM GstDebugLevel ##### -->
<para>
The level defines the importance of a debugging message. The more important a
</para>
-<!-- ##### SECTION Stability_Level ##### -->
-
-
<!-- ##### STRUCT GstObject ##### -->
<para>
#GstPadTemplate, #GstElement, #GstEvent
</para>
-<!-- ##### SECTION Stability_Level ##### -->
-
-
<!-- ##### STRUCT GstPad ##### -->
<para>
#GstPad, #GstElementFactory
</para>
-<!-- ##### SECTION Stability_Level ##### -->
-
-
<!-- ##### STRUCT GstPadTemplate ##### -->
<para>
The padtemplate object.
#GstBin
</para>
-<!-- ##### SECTION Stability_Level ##### -->
-
-
<!-- ##### STRUCT GstPipeline ##### -->
<para>
#GstPluginFeature, #GstType, #GstAutoplug, #GstElementFactory
</para>
-<!-- ##### SECTION Stability_Level ##### -->
-
-
<!-- ##### FUNCTION gst_plugin_error_quark ##### -->
<para>
Get the error quark
#GstPlugin
</para>
-<!-- ##### SECTION Stability_Level ##### -->
-
-
<!-- ##### STRUCT GstPluginFeature ##### -->
<para>
</para>
-<!-- ##### SECTION Stability_Level ##### -->
-
-
<!-- ##### ENUM GstState ##### -->
<para>
</para>
-<!-- ##### SECTION Stability_Level ##### -->
-
-
<!-- ##### MACRO GST_VALUE_HOLDS_FOURCC ##### -->
#GstBuffer, #GstCaps, #GstEvent
</para>
-<!-- ##### SECTION Stability_Level ##### -->
-
-
<!-- ##### ENUM GstDPHeaderFlag ##### -->
<para>
PROP_STATE_ERROR,
PROP_SILENT,
PROP_DUMP,
- PROP_SYNC,
PROP_SIGNAL_HANDOFFS,
PROP_LAST_MESSAGE,
PROP_CAN_ACTIVATE_PUSH,
static GstFlowReturn gst_fake_sink_render (GstBaseSink * bsink,
GstBuffer * buffer);
static gboolean gst_fake_sink_event (GstBaseSink * bsink, GstEvent * event);
-static void gst_fake_sink_get_times (GstBaseSink * bsink, GstBuffer * buffer,
- GstClockTime * start, GstClockTime * end);
static guint gst_fake_sink_signals[LAST_SIGNAL] = { 0 };
g_param_spec_string ("last_message", "Last Message",
"The message describing current status", DEFAULT_LAST_MESSAGE,
G_PARAM_READABLE));
- g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_SYNC,
- g_param_spec_boolean ("sync", "Sync", "Sync on the clock", DEFAULT_SYNC,
- G_PARAM_READWRITE));
g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_SIGNAL_HANDOFFS,
g_param_spec_boolean ("signal-handoffs", "Signal handoffs",
"Send a signal before unreffing the buffer", DEFAULT_SIGNAL_HANDOFFS,
gstbase_sink_class->event = GST_DEBUG_FUNCPTR (gst_fake_sink_event);
gstbase_sink_class->preroll = GST_DEBUG_FUNCPTR (gst_fake_sink_preroll);
gstbase_sink_class->render = GST_DEBUG_FUNCPTR (gst_fake_sink_render);
- gstbase_sink_class->get_times = GST_DEBUG_FUNCPTR (gst_fake_sink_get_times);
}
static void
{
fakesink->silent = DEFAULT_SILENT;
fakesink->dump = DEFAULT_DUMP;
- fakesink->sync = DEFAULT_SYNC;
fakesink->last_message = g_strdup (DEFAULT_LAST_MESSAGE);
fakesink->state_error = DEFAULT_STATE_ERROR;
fakesink->signal_handoffs = DEFAULT_SIGNAL_HANDOFFS;
case PROP_DUMP:
sink->dump = g_value_get_boolean (value);
break;
- case PROP_SYNC:
- sink->sync = g_value_get_boolean (value);
- break;
case PROP_SIGNAL_HANDOFFS:
sink->signal_handoffs = g_value_get_boolean (value);
break;
case PROP_DUMP:
g_value_set_boolean (value, sink->dump);
break;
- case PROP_SYNC:
- g_value_set_boolean (value, sink->sync);
- break;
case PROP_SIGNAL_HANDOFFS:
g_value_set_boolean (value, sink->signal_handoffs);
break;
}
}
-static void
-gst_fake_sink_get_times (GstBaseSink * bsink, GstBuffer * buffer,
- GstClockTime * start, GstClockTime * end)
-{
- GstFakeSink *sink = GST_FAKE_SINK (bsink);
-
- if (sink->sync) {
- GST_BASE_SINK_CLASS (parent_class)->get_times (bsink, buffer, start, end);
- }
-}
-
static gboolean
gst_fake_sink_event (GstBaseSink * bsink, GstEvent * event)
{
gboolean silent;
gboolean dump;
- gboolean sync;
gboolean signal_handoffs;
GstFakeSinkStateError state_error;
gchar *last_message;
PROP_STATE_ERROR,
PROP_SILENT,
PROP_DUMP,
- PROP_SYNC,
PROP_SIGNAL_HANDOFFS,
PROP_LAST_MESSAGE,
PROP_CAN_ACTIVATE_PUSH,
static GstFlowReturn gst_fake_sink_render (GstBaseSink * bsink,
GstBuffer * buffer);
static gboolean gst_fake_sink_event (GstBaseSink * bsink, GstEvent * event);
-static void gst_fake_sink_get_times (GstBaseSink * bsink, GstBuffer * buffer,
- GstClockTime * start, GstClockTime * end);
static guint gst_fake_sink_signals[LAST_SIGNAL] = { 0 };
g_param_spec_string ("last_message", "Last Message",
"The message describing current status", DEFAULT_LAST_MESSAGE,
G_PARAM_READABLE));
- g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_SYNC,
- g_param_spec_boolean ("sync", "Sync", "Sync on the clock", DEFAULT_SYNC,
- G_PARAM_READWRITE));
g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_SIGNAL_HANDOFFS,
g_param_spec_boolean ("signal-handoffs", "Signal handoffs",
"Send a signal before unreffing the buffer", DEFAULT_SIGNAL_HANDOFFS,
gstbase_sink_class->event = GST_DEBUG_FUNCPTR (gst_fake_sink_event);
gstbase_sink_class->preroll = GST_DEBUG_FUNCPTR (gst_fake_sink_preroll);
gstbase_sink_class->render = GST_DEBUG_FUNCPTR (gst_fake_sink_render);
- gstbase_sink_class->get_times = GST_DEBUG_FUNCPTR (gst_fake_sink_get_times);
}
static void
{
fakesink->silent = DEFAULT_SILENT;
fakesink->dump = DEFAULT_DUMP;
- fakesink->sync = DEFAULT_SYNC;
fakesink->last_message = g_strdup (DEFAULT_LAST_MESSAGE);
fakesink->state_error = DEFAULT_STATE_ERROR;
fakesink->signal_handoffs = DEFAULT_SIGNAL_HANDOFFS;
case PROP_DUMP:
sink->dump = g_value_get_boolean (value);
break;
- case PROP_SYNC:
- sink->sync = g_value_get_boolean (value);
- break;
case PROP_SIGNAL_HANDOFFS:
sink->signal_handoffs = g_value_get_boolean (value);
break;
case PROP_DUMP:
g_value_set_boolean (value, sink->dump);
break;
- case PROP_SYNC:
- g_value_set_boolean (value, sink->sync);
- break;
case PROP_SIGNAL_HANDOFFS:
g_value_set_boolean (value, sink->signal_handoffs);
break;
}
}
-static void
-gst_fake_sink_get_times (GstBaseSink * bsink, GstBuffer * buffer,
- GstClockTime * start, GstClockTime * end)
-{
- GstFakeSink *sink = GST_FAKE_SINK (bsink);
-
- if (sink->sync) {
- GST_BASE_SINK_CLASS (parent_class)->get_times (bsink, buffer, start, end);
- }
-}
-
static gboolean
gst_fake_sink_event (GstBaseSink * bsink, GstEvent * event)
{
gboolean silent;
gboolean dump;
- gboolean sync;
gboolean signal_handoffs;
GstFakeSinkStateError state_error;
gchar *last_message;
gst_bin_add_many (pipeline, fakesrc, queue, fakesink, NULL);
fail_unless (gst_element_link_many (fakesrc, queue, fakesink, NULL));
+ g_object_set (G_OBJECT (fakesink), "sync", FALSE, NULL);
+
/* Send 100 buffers per sec */
g_object_set (G_OBJECT (fakesrc), "silent", TRUE, "datarate", 100,
"sizemax", 1, "sizetype", 2, NULL);