gst/elements/gstbufferstore.c: initialize debugging structure correctly
authorBenjamin Otte <otte@gnome.org>
Sun, 11 Jan 2004 18:23:48 +0000 (18:23 +0000)
committerBenjamin Otte <otte@gnome.org>
Sun, 11 Jan 2004 18:23:48 +0000 (18:23 +0000)
Original commit message from CVS:
2004-01-11  Benjamin Otte  <in7y118@public.uni-hamburg.de>

* gst/elements/gstbufferstore.c:
initialize debugging structure correctly
* gst/elements/gsttee.c: (gst_tee_set_property):
g_object_notify when property was changed
* gst/elements/gsttypefindelement.c:
(gst_type_find_element_change_state):
clear caps correctly

ChangeLog
gst/elements/gstbufferstore.c
gst/elements/gsttee.c
gst/elements/gsttypefind.c
gst/elements/gsttypefindelement.c
plugins/elements/gstbufferstore.c
plugins/elements/gsttee.c
plugins/elements/gsttypefind.c
plugins/elements/gsttypefindelement.c

index ef8f8c2..fd93d8b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
 2004-01-11  Benjamin Otte  <in7y118@public.uni-hamburg.de>
 
+       * gst/elements/gstbufferstore.c:
+         initialize debugging structure correctly
+       * gst/elements/gsttee.c: (gst_tee_set_property):
+         g_object_notify when property was changed
+       * gst/elements/gsttypefindelement.c:
+       (gst_type_find_element_change_state):
+         clear caps correctly
+
+2004-01-11  Benjamin Otte  <in7y118@public.uni-hamburg.de>
+
        * gst/gstqueue.c: (gst_queue_init):
          Use better defaults for when a queue should block. This
          gets rid of jerky playback for quite a few files.
index 7a31f64..71d652a 100644 (file)
@@ -47,7 +47,10 @@ static void  gst_buffer_store_cleared_func   (GstBufferStore *       store);
   
 static guint gst_buffer_store_signals[LAST_SIGNAL] = { 0 };
 
-GST_BOILERPLATE (GstBufferStore, gst_buffer_store, GObject, G_TYPE_OBJECT);
+#define _do_init(bla) \
+    GST_DEBUG_CATEGORY_INIT (gst_buffer_store_debug, "GstBufferStore", 0, "buffer store helper");
+
+GST_BOILERPLATE_FULL (GstBufferStore, gst_buffer_store, GObject, G_TYPE_OBJECT, _do_init);
 
 
 G_GNUC_UNUSED static void
index 186fa96..a7a4552 100644 (file)
@@ -201,6 +201,7 @@ gst_tee_set_property (GObject *object, guint prop_id, const GValue *value, GPara
   switch (prop_id) {
     case ARG_SILENT:
       tee->silent = g_value_get_boolean (value);
+      g_object_notify (G_OBJECT (tee), "silent");
       break;
     default:
       G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
index 5ba1cb9..27aec5a 100644 (file)
@@ -633,8 +633,7 @@ gst_type_find_element_change_state (GstElement *element)
       break;
     case GST_STATE_PAUSED_TO_READY:
       stop_typefinding (typefind);
-      if (typefind->caps)
-       gst_caps_free (typefind->caps);
+      gst_caps_replace (&typefind->caps, NULL);
       break;
     default:
       break;
index 5ba1cb9..27aec5a 100644 (file)
@@ -633,8 +633,7 @@ gst_type_find_element_change_state (GstElement *element)
       break;
     case GST_STATE_PAUSED_TO_READY:
       stop_typefinding (typefind);
-      if (typefind->caps)
-       gst_caps_free (typefind->caps);
+      gst_caps_replace (&typefind->caps, NULL);
       break;
     default:
       break;
index 7a31f64..71d652a 100644 (file)
@@ -47,7 +47,10 @@ static void  gst_buffer_store_cleared_func   (GstBufferStore *       store);
   
 static guint gst_buffer_store_signals[LAST_SIGNAL] = { 0 };
 
-GST_BOILERPLATE (GstBufferStore, gst_buffer_store, GObject, G_TYPE_OBJECT);
+#define _do_init(bla) \
+    GST_DEBUG_CATEGORY_INIT (gst_buffer_store_debug, "GstBufferStore", 0, "buffer store helper");
+
+GST_BOILERPLATE_FULL (GstBufferStore, gst_buffer_store, GObject, G_TYPE_OBJECT, _do_init);
 
 
 G_GNUC_UNUSED static void
index 186fa96..a7a4552 100644 (file)
@@ -201,6 +201,7 @@ gst_tee_set_property (GObject *object, guint prop_id, const GValue *value, GPara
   switch (prop_id) {
     case ARG_SILENT:
       tee->silent = g_value_get_boolean (value);
+      g_object_notify (G_OBJECT (tee), "silent");
       break;
     default:
       G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
index 5ba1cb9..27aec5a 100644 (file)
@@ -633,8 +633,7 @@ gst_type_find_element_change_state (GstElement *element)
       break;
     case GST_STATE_PAUSED_TO_READY:
       stop_typefinding (typefind);
-      if (typefind->caps)
-       gst_caps_free (typefind->caps);
+      gst_caps_replace (&typefind->caps, NULL);
       break;
     default:
       break;
index 5ba1cb9..27aec5a 100644 (file)
@@ -633,8 +633,7 @@ gst_type_find_element_change_state (GstElement *element)
       break;
     case GST_STATE_PAUSED_TO_READY:
       stop_typefinding (typefind);
-      if (typefind->caps)
-       gst_caps_free (typefind->caps);
+      gst_caps_replace (&typefind->caps, NULL);
       break;
     default:
       break;