fix some of uraeus's commenting fixes can someone also put {} around GST_DEBUG statem...
authorThomas Vander Stichele <thomas@apestaart.org>
Sat, 15 Dec 2001 01:01:57 +0000 (01:01 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Sat, 15 Dec 2001 01:01:57 +0000 (01:01 +0000)
Original commit message from CVS:
fix some of uraeus's commenting fixes
can someone also put {} around GST_DEBUG statements after if's ?

gst/gstelement.c
gst/gstinfo.c
gst/gstparse.c
gst/gstplugin.c
gst/gstthread.c

index 90cc323..6d3d4e1 100644 (file)
@@ -1015,7 +1015,8 @@ gst_element_save_thyself (GstObject *object,
 {
   GList *pads;
   GstElementClass *oclass;
-/*  GType type; */
+  /* FIXME : this is needed for glib2 */
+  /* GType type; */
   GstElement *element;
 
   g_return_val_if_fail (GST_IS_ELEMENT (object), parent);
@@ -1038,6 +1039,7 @@ gst_element_save_thyself (GstObject *object,
 
 /* FIXME FIXME FIXME! */
   /* output all args to the element */
+  /*
   type = G_OBJECT_TYPE (element);
   while (type != G_TYPE_INVALID) {
     GtkArg *args;
@@ -1062,7 +1064,7 @@ gst_element_save_thyself (GstObject *object,
             xmlNewChild (arg, NULL, "value",
                          g_strdup_printf ("%d", G_VALUE_UCHAR (args[i])));
             break;
-          case G_TYPE_BOOL:
+          case G_TYPE_BOOLEAN:
             xmlNewChild (arg, NULL, "value",
                         G_VALUE_BOOL (args[i]) ? "true" : "false");
             break;
index ab9d6ab..dbedb0e 100644 (file)
@@ -317,6 +317,7 @@ gst_default_info_handler (gint category, gboolean incore,
     fprintf(stderr,"INFO:%s%s %s\n",
             location,elementname,string);
   #endif /* GST_DEBUG_COLOR */
+/*
 #endif
 */
 
index 83caeea..e5131e8 100644 (file)
@@ -342,8 +342,7 @@ gst_parse_launch_cmdline (int argc, char *argv[], GstBin * parent, gst_parse_pri
       numsinkpads = 0;
       tempname = NULL;
 
-      /
- find sink pads
+      /* find sink pads */
       if (sinkpadname != NULL) {
        while (1) {
          /* split name at commas */
index 7bc9737..675949a 100644 (file)
@@ -97,12 +97,12 @@ _gst_plugin_initialize (void)
       !doc->xmlRootNode ||
       doc->xmlRootNode->name == 0 ||
       strcmp (doc->xmlRootNode->name, "GST-PluginRegistry") ||
-      !plugin_times_older_than(get_time(GST_CONFIG_DIR"/reg.xml"))) {
+      !plugin_times_older_than(get_time(GST_CONFIG_DIR"/reg.xml"))) 
+  {
     if (_gst_warn_old_registry)
        g_error ("gstplugin: registry needs rebuild: run gstreamer-register\n");
     gst_plugin_load_all ();
-    /
-gst_plugin_unload_all ();
+    gst_plugin_unload_all ();
     return;
   }
   gst_plugin_load_thyself (doc->xmlRootNode);
index 9806020..8c91a63 100644 (file)
@@ -324,7 +324,7 @@ gst_thread_change_state (GstElement * element)
        THR_DEBUG ("  element \"%s\"\n", GST_ELEMENT_NAME (e));
        elements = g_list_next (elements);
        if (GST_IS_QUEUE (e)) {
-  /* FIXME make this more efficient by only waking queues that are asleep */
+  /* FIXME make this more efficient by only waking queues that are asleep
    *  FIXME and only waking the appropriate condition (depending on if it's
    *  FIXME on up- or down-stream side)
    * FIXME also make this more efficient by keeping list of managed queues