remove the sync property from fakesink.
authorThomas Vander Stichele <thomas@apestaart.org>
Tue, 20 Sep 2005 15:45:42 +0000 (15:45 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Tue, 20 Sep 2005 15:45:42 +0000 (15:45 +0000)
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.

22 files changed:
ChangeLog
check/gst/gstevent.c
docs/gst/tmpl/gstelement.sgml
docs/gst/tmpl/gstenumtypes.sgml
docs/gst/tmpl/gstimplementsinterface.sgml
docs/gst/tmpl/gstindex.sgml
docs/gst/tmpl/gstindexfactory.sgml
docs/gst/tmpl/gstinfo.sgml
docs/gst/tmpl/gstobject.sgml
docs/gst/tmpl/gstpad.sgml
docs/gst/tmpl/gstpadtemplate.sgml
docs/gst/tmpl/gstpipeline.sgml
docs/gst/tmpl/gstplugin.sgml
docs/gst/tmpl/gstpluginfeature.sgml
docs/gst/tmpl/gsttypes.sgml
docs/gst/tmpl/gstvalue.sgml
docs/libs/tmpl/gstdataprotocol.sgml
gst/elements/gstfakesink.c
gst/elements/gstfakesink.h
plugins/elements/gstfakesink.c
plugins/elements/gstfakesink.h
tests/check/gst/gstevent.c

index 5e8540c..82a219d 100644 (file)
--- a/ChangeLog
+++ b/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>
 
index 616a393..326bcab 100644 (file)
@@ -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);
index fb831f6..87cad85 100644 (file)
@@ -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>
 
index 52ba68c..e9361f1 100644 (file)
@@ -14,6 +14,3 @@ all gstreamer core related enumerations
 
 </para>
 
-<!-- ##### SECTION Stability_Level ##### -->
-
-
index df7fb5f..5683450 100644 (file)
@@ -14,9 +14,6 @@ Core interface implemented by #GstElements that allows runtime querying of inter
 
 </para>
 
-<!-- ##### SECTION Stability_Level ##### -->
-
-
 <!-- ##### STRUCT GstImplementsInterface ##### -->
 <para>
 
index 1eac0ee..74254d5 100644 (file)
@@ -15,9 +15,6 @@ in a pipeline.
 #GstIndexFactory
 </para>
 
-<!-- ##### SECTION Stability_Level ##### -->
-
-
 <!-- ##### STRUCT GstIndex ##### -->
 <para>
 
index 7c86974..f458efd 100644 (file)
@@ -14,9 +14,6 @@ GstIndexFactory is used to dynamically create GstIndex implementations.
 #GstIndex
 </para>
 
-<!-- ##### SECTION Stability_Level ##### -->
-
-
 <!-- ##### STRUCT GstIndexFactory ##### -->
 <para>
 The GstIndexFactory object
index a8b3a38..59e5b43 100644 (file)
@@ -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 
index 7baef0a..9a11e50 100644 (file)
@@ -67,9 +67,6 @@ object.
 
 </para>
 
-<!-- ##### SECTION Stability_Level ##### -->
-
-
 <!-- ##### STRUCT GstObject ##### -->
 <para>
 
index 3c0d226..4998300 100644 (file)
@@ -57,9 +57,6 @@ Last reviewed on December 13th, 2002 (0.5.0.1)
 #GstPadTemplate, #GstElement, #GstEvent
 </para>
 
-<!-- ##### SECTION Stability_Level ##### -->
-
-
 <!-- ##### STRUCT GstPad ##### -->
 <para>
 
index 117ebb6..9ea3315 100644 (file)
@@ -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.
index a5010b8..15c5a6b 100644 (file)
@@ -21,9 +21,6 @@ the pipeline, use gst_object_unref() to free its resources.
 #GstBin
 </para>
 
-<!-- ##### SECTION Stability_Level ##### -->
-
-
 <!-- ##### STRUCT GstPipeline ##### -->
 <para>
 
index 3e1cf62..6fd485e 100644 (file)
@@ -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
index 04fc047..a257a56 100644 (file)
@@ -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>
 
index 136d62e..e1ca64c 100644 (file)
@@ -14,9 +14,6 @@ various global enums and constants
 
 </para>
 
-<!-- ##### SECTION Stability_Level ##### -->
-
-
 <!-- ##### ENUM GstState ##### -->
 <para>
 
index 299cf49..0e7aa44 100644 (file)
@@ -14,9 +14,6 @@ GValue implementations specific to GStreamer
 
 </para>
 
-<!-- ##### SECTION Stability_Level ##### -->
-
-
 <!-- ##### MACRO GST_VALUE_HOLDS_FOURCC ##### -->
 
 
index c5446c9..0277c7c 100644 (file)
@@ -27,9 +27,6 @@ network connections also need a protocol to do this.
 #GstBuffer, #GstCaps, #GstEvent
 </para>
 
-<!-- ##### SECTION Stability_Level ##### -->
-
-
 <!-- ##### ENUM GstDPHeaderFlag ##### -->
 <para>
 
index 22741cc..2e72429 100644 (file)
@@ -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)
 {
index aa13a1d..cfebdcf 100644 (file)
@@ -59,7 +59,6 @@ struct _GstFakeSink {
 
   gboolean             silent;
   gboolean             dump;
-  gboolean             sync;
   gboolean             signal_handoffs;
   GstFakeSinkStateError state_error;
   gchar                        *last_message;
index 22741cc..2e72429 100644 (file)
@@ -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)
 {
index aa13a1d..cfebdcf 100644 (file)
@@ -59,7 +59,6 @@ struct _GstFakeSink {
 
   gboolean             silent;
   gboolean             dump;
-  gboolean             sync;
   gboolean             signal_handoffs;
   GstFakeSinkStateError state_error;
   gchar                        *last_message;
index 616a393..326bcab 100644 (file)
@@ -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);