fix some of uraeus's commenting fixes can someone also put {} around GST_DEBUG statements after if's ?

Original commit message from CVS:
fix some of uraeus's commenting fixes
can someone also put {} around GST_DEBUG statements after if's ?
This commit is contained in:
Thomas Vander Stichele 2001-12-15 01:01:57 +00:00
parent 4e927120b2
commit f972dbb746
5 changed files with 10 additions and 8 deletions

View file

@ -1015,7 +1015,8 @@ gst_element_save_thyself (GstObject *object,
{ {
GList *pads; GList *pads;
GstElementClass *oclass; GstElementClass *oclass;
/* GType type; */ /* FIXME : this is needed for glib2 */
/* GType type; */
GstElement *element; GstElement *element;
g_return_val_if_fail (GST_IS_ELEMENT (object), parent); g_return_val_if_fail (GST_IS_ELEMENT (object), parent);
@ -1038,6 +1039,7 @@ gst_element_save_thyself (GstObject *object,
/* FIXME FIXME FIXME! */ /* FIXME FIXME FIXME! */
/* output all args to the element */ /* output all args to the element */
/*
type = G_OBJECT_TYPE (element); type = G_OBJECT_TYPE (element);
while (type != G_TYPE_INVALID) { while (type != G_TYPE_INVALID) {
GtkArg *args; GtkArg *args;
@ -1062,7 +1064,7 @@ gst_element_save_thyself (GstObject *object,
xmlNewChild (arg, NULL, "value", xmlNewChild (arg, NULL, "value",
g_strdup_printf ("%d", G_VALUE_UCHAR (args[i]))); g_strdup_printf ("%d", G_VALUE_UCHAR (args[i])));
break; break;
case G_TYPE_BOOL: case G_TYPE_BOOLEAN:
xmlNewChild (arg, NULL, "value", xmlNewChild (arg, NULL, "value",
G_VALUE_BOOL (args[i]) ? "true" : "false"); G_VALUE_BOOL (args[i]) ? "true" : "false");
break; break;

View file

@ -317,6 +317,7 @@ gst_default_info_handler (gint category, gboolean incore,
fprintf(stderr,"INFO:%s%s %s\n", fprintf(stderr,"INFO:%s%s %s\n",
location,elementname,string); location,elementname,string);
#endif /* GST_DEBUG_COLOR */ #endif /* GST_DEBUG_COLOR */
/*
#endif #endif
*/ */

View file

@ -342,8 +342,7 @@ gst_parse_launch_cmdline (int argc, char *argv[], GstBin * parent, gst_parse_pri
numsinkpads = 0; numsinkpads = 0;
tempname = NULL; tempname = NULL;
/ /* find sink pads */
find sink pads
if (sinkpadname != NULL) { if (sinkpadname != NULL) {
while (1) { while (1) {
/* split name at commas */ /* split name at commas */

View file

@ -97,12 +97,12 @@ _gst_plugin_initialize (void)
!doc->xmlRootNode || !doc->xmlRootNode ||
doc->xmlRootNode->name == 0 || doc->xmlRootNode->name == 0 ||
strcmp (doc->xmlRootNode->name, "GST-PluginRegistry") || 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) if (_gst_warn_old_registry)
g_error ("gstplugin: registry needs rebuild: run gstreamer-register\n"); g_error ("gstplugin: registry needs rebuild: run gstreamer-register\n");
gst_plugin_load_all (); gst_plugin_load_all ();
/ gst_plugin_unload_all ();
gst_plugin_unload_all ();
return; return;
} }
gst_plugin_load_thyself (doc->xmlRootNode); gst_plugin_load_thyself (doc->xmlRootNode);

View file

@ -324,7 +324,7 @@ gst_thread_change_state (GstElement * element)
THR_DEBUG (" element \"%s\"\n", GST_ELEMENT_NAME (e)); THR_DEBUG (" element \"%s\"\n", GST_ELEMENT_NAME (e));
elements = g_list_next (elements); elements = g_list_next (elements);
if (GST_IS_QUEUE (e)) { 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 and only waking the appropriate condition (depending on if it's
* FIXME on up- or down-stream side) * FIXME on up- or down-stream side)
* FIXME also make this more efficient by keeping list of managed queues * FIXME also make this more efficient by keeping list of managed queues