mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-08 09:04:17 +00:00
remove the sync property from fakesink.
Original commit message from CVS: * 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.
This commit is contained in:
parent
2f4fc557f1
commit
440b1e419a
22 changed files with 17 additions and 100 deletions
16
ChangeLog
16
ChangeLog
|
@ -1,14 +1,24 @@
|
|||
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>
|
||||
|
||||
|
|
|
@ -304,6 +304,8 @@ GST_START_TEST (send_custom_events)
|
|||
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);
|
||||
|
|
|
@ -65,9 +65,6 @@ and gst_element_set_clock(). You can wait for the clock to reach a given
|
|||
|
||||
<!-- basic object functions -->
|
||||
|
||||
<!-- ##### SECTION Stability_Level ##### -->
|
||||
|
||||
|
||||
<!-- ##### STRUCT GstElement ##### -->
|
||||
<para>
|
||||
|
||||
|
|
|
@ -14,6 +14,3 @@ all gstreamer core related enumerations
|
|||
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION Stability_Level ##### -->
|
||||
|
||||
|
||||
|
|
|
@ -14,9 +14,6 @@ Core interface implemented by #GstElements that allows runtime querying of inter
|
|||
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION Stability_Level ##### -->
|
||||
|
||||
|
||||
<!-- ##### STRUCT GstImplementsInterface ##### -->
|
||||
<para>
|
||||
|
||||
|
|
|
@ -15,9 +15,6 @@ in a pipeline.
|
|||
#GstIndexFactory
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION Stability_Level ##### -->
|
||||
|
||||
|
||||
<!-- ##### STRUCT GstIndex ##### -->
|
||||
<para>
|
||||
|
||||
|
|
|
@ -14,9 +14,6 @@ GstIndexFactory is used to dynamically create GstIndex implementations.
|
|||
#GstIndex
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION Stability_Level ##### -->
|
||||
|
||||
|
||||
<!-- ##### STRUCT GstIndexFactory ##### -->
|
||||
<para>
|
||||
The GstIndexFactory object
|
||||
|
|
|
@ -68,9 +68,6 @@ categories. These are explained at GST_DEBUG_CATEGORY_INIT().
|
|||
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
|
||||
|
|
|
@ -67,9 +67,6 @@ object.
|
|||
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION Stability_Level ##### -->
|
||||
|
||||
|
||||
<!-- ##### STRUCT GstObject ##### -->
|
||||
<para>
|
||||
|
||||
|
|
|
@ -57,9 +57,6 @@ Last reviewed on December 13th, 2002 (0.5.0.1)
|
|||
#GstPadTemplate, #GstElement, #GstEvent
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION Stability_Level ##### -->
|
||||
|
||||
|
||||
<!-- ##### STRUCT GstPad ##### -->
|
||||
<para>
|
||||
|
||||
|
|
|
@ -73,9 +73,6 @@ The following example shows you how to add the padtemplate to an elementfactory:
|
|||
#GstPad, #GstElementFactory
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION Stability_Level ##### -->
|
||||
|
||||
|
||||
<!-- ##### STRUCT GstPadTemplate ##### -->
|
||||
<para>
|
||||
The padtemplate object.
|
||||
|
|
|
@ -21,9 +21,6 @@ the pipeline, use gst_object_unref() to free its resources.
|
|||
#GstBin
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION Stability_Level ##### -->
|
||||
|
||||
|
||||
<!-- ##### STRUCT GstPipeline ##### -->
|
||||
<para>
|
||||
|
||||
|
|
|
@ -35,9 +35,6 @@ to bring the plugin into memory.
|
|||
#GstPluginFeature, #GstType, #GstAutoplug, #GstElementFactory
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION Stability_Level ##### -->
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gst_plugin_error_quark ##### -->
|
||||
<para>
|
||||
Get the error quark
|
||||
|
|
|
@ -14,9 +14,6 @@ This is a base class for anything that can be added to a #GstPlugin.
|
|||
#GstPlugin
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION Stability_Level ##### -->
|
||||
|
||||
|
||||
<!-- ##### STRUCT GstPluginFeature ##### -->
|
||||
<para>
|
||||
|
||||
|
|
|
@ -14,9 +14,6 @@ various global enums and constants
|
|||
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION Stability_Level ##### -->
|
||||
|
||||
|
||||
<!-- ##### ENUM GstState ##### -->
|
||||
<para>
|
||||
|
||||
|
|
|
@ -14,9 +14,6 @@ GValue implementations specific to GStreamer
|
|||
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION Stability_Level ##### -->
|
||||
|
||||
|
||||
<!-- ##### MACRO GST_VALUE_HOLDS_FOURCC ##### -->
|
||||
|
||||
|
||||
|
|
|
@ -27,9 +27,6 @@ network connections also need a protocol to do this.
|
|||
#GstBuffer, #GstCaps, #GstEvent
|
||||
</para>
|
||||
|
||||
<!-- ##### SECTION Stability_Level ##### -->
|
||||
|
||||
|
||||
<!-- ##### ENUM GstDPHeaderFlag ##### -->
|
||||
<para>
|
||||
|
||||
|
|
|
@ -73,7 +73,6 @@ enum
|
|||
PROP_STATE_ERROR,
|
||||
PROP_SILENT,
|
||||
PROP_DUMP,
|
||||
PROP_SYNC,
|
||||
PROP_SIGNAL_HANDOFFS,
|
||||
PROP_LAST_MESSAGE,
|
||||
PROP_CAN_ACTIVATE_PUSH,
|
||||
|
@ -128,8 +127,6 @@ static GstFlowReturn gst_fake_sink_preroll (GstBaseSink * bsink,
|
|||
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 };
|
||||
|
||||
|
@ -165,9 +162,6 @@ gst_fake_sink_class_init (GstFakeSinkClass * klass)
|
|||
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,
|
||||
|
@ -210,7 +204,6 @@ gst_fake_sink_class_init (GstFakeSinkClass * klass)
|
|||
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
|
||||
|
@ -218,7 +211,6 @@ gst_fake_sink_init (GstFakeSink * fakesink, GstFakeSinkClass * g_class)
|
|||
{
|
||||
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;
|
||||
|
@ -242,9 +234,6 @@ gst_fake_sink_set_property (GObject * object, guint prop_id,
|
|||
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;
|
||||
|
@ -278,9 +267,6 @@ gst_fake_sink_get_property (GObject * object, guint prop_id, GValue * value,
|
|||
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;
|
||||
|
@ -299,17 +285,6 @@ gst_fake_sink_get_property (GObject * object, guint prop_id, GValue * value,
|
|||
}
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
|
|
|
@ -59,7 +59,6 @@ struct _GstFakeSink {
|
|||
|
||||
gboolean silent;
|
||||
gboolean dump;
|
||||
gboolean sync;
|
||||
gboolean signal_handoffs;
|
||||
GstFakeSinkStateError state_error;
|
||||
gchar *last_message;
|
||||
|
|
|
@ -73,7 +73,6 @@ enum
|
|||
PROP_STATE_ERROR,
|
||||
PROP_SILENT,
|
||||
PROP_DUMP,
|
||||
PROP_SYNC,
|
||||
PROP_SIGNAL_HANDOFFS,
|
||||
PROP_LAST_MESSAGE,
|
||||
PROP_CAN_ACTIVATE_PUSH,
|
||||
|
@ -128,8 +127,6 @@ static GstFlowReturn gst_fake_sink_preroll (GstBaseSink * bsink,
|
|||
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 };
|
||||
|
||||
|
@ -165,9 +162,6 @@ gst_fake_sink_class_init (GstFakeSinkClass * klass)
|
|||
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,
|
||||
|
@ -210,7 +204,6 @@ gst_fake_sink_class_init (GstFakeSinkClass * klass)
|
|||
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
|
||||
|
@ -218,7 +211,6 @@ gst_fake_sink_init (GstFakeSink * fakesink, GstFakeSinkClass * g_class)
|
|||
{
|
||||
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;
|
||||
|
@ -242,9 +234,6 @@ gst_fake_sink_set_property (GObject * object, guint prop_id,
|
|||
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;
|
||||
|
@ -278,9 +267,6 @@ gst_fake_sink_get_property (GObject * object, guint prop_id, GValue * value,
|
|||
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;
|
||||
|
@ -299,17 +285,6 @@ gst_fake_sink_get_property (GObject * object, guint prop_id, GValue * value,
|
|||
}
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
|
|
|
@ -59,7 +59,6 @@ struct _GstFakeSink {
|
|||
|
||||
gboolean silent;
|
||||
gboolean dump;
|
||||
gboolean sync;
|
||||
gboolean signal_handoffs;
|
||||
GstFakeSinkStateError state_error;
|
||||
gchar *last_message;
|
||||
|
|
|
@ -304,6 +304,8 @@ GST_START_TEST (send_custom_events)
|
|||
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);
|
||||
|
|
Loading…
Reference in a new issue