add more debug statements for element linking better docs for unlink() make category column as wide as our widest kno...

Original commit message from CVS:
add more debug statements for element linking
better docs for unlink()
make category column as wide as our widest known (internal) category
fix typo in comment
This commit is contained in:
Stefan Kost 2005-06-16 08:09:43 +00:00
parent 55d5fa2930
commit f387290dea
4 changed files with 28 additions and 2 deletions

View file

@ -1,3 +1,13 @@
2005-06-16 Stefan Kost <ensonic@users.sf.net>
* gst/gstelement.c: (gst_element_link_pads_filtered):
add more debug statements
better docs
* gst/gstinfo.c: (gst_debug_log_default):
make category column as wide as our widest known (internal) category
* gst/registries/gstlibxmlregistry.c:
typo in comment
2005-06-16 Stefan Kost <ensonic@users.sf.net>
* configure.ac:

View file

@ -1962,7 +1962,14 @@ gst_element_link_pads_filtered (GstElement * src, const gchar * srcpadname,
GST_CAT_DEBUG (GST_CAT_ELEMENT_PADS, "linked pad %s:%s to pad %s:%s",
GST_DEBUG_PAD_NAME (srcpad), GST_DEBUG_PAD_NAME (temp));
return TRUE;
} else {
GST_CAT_DEBUG (GST_CAT_ELEMENT_PADS,
"no temp %p or link failed", temp);
}
} else {
GST_CAT_DEBUG (GST_CAT_ELEMENT_PADS,
"invalid source pad dir=%d, peer=%p", GST_PAD_DIRECTION (srcpad),
GST_PAD_PEER (srcpad));
}
/* find a better way for this mess */
if (srcpads) {
@ -1991,7 +1998,14 @@ gst_element_link_pads_filtered (GstElement * src, const gchar * srcpadname,
GST_CAT_DEBUG (GST_CAT_ELEMENT_PADS, "linked pad %s:%s to pad %s:%s",
GST_DEBUG_PAD_NAME (temp), GST_DEBUG_PAD_NAME (destpad));
return TRUE;
} else {
GST_CAT_DEBUG (GST_CAT_ELEMENT_PADS,
"no temp %p or link failed", temp);
}
} else {
GST_CAT_DEBUG (GST_CAT_ELEMENT_PADS,
"invalid destination pad dir=%d, peer=%p",
GST_PAD_DIRECTION (destpad), GST_PAD_PEER (destpad));
}
if (destpads) {
destpads = g_list_next (destpads);
@ -2074,6 +2088,8 @@ gst_element_link_filtered (GstElement * src, GstElement * dest,
* @...: the NULL-terminated list of elements to link in order.
*
* Chain together a series of elements. Uses gst_element_link().
* Does not unlink partially linked elements in the case of an error
* (use gst_element_link_many() ).
*
* Returns: TRUE on success, FALSE otherwise.
*/

View file

@ -517,7 +517,7 @@ gst_debug_log_default (GstDebugCategory * category, GstDebugLevel level,
g_get_current_time (&now);
g_printerr ("%s (%p - %" GST_TIME_FORMAT
") %s%15s%s(%s%5d%s) %s%s(%d):%s:%s%s %s\n",
") %s%20s%s(%s%5d%s) %s%s(%d):%s:%s%s %s\n",
gst_debug_level_get_name (level), g_thread_self (),
GST_TIME_ARGS (GST_TIMEVAL_TO_TIME (now)), color,
gst_debug_category_get_name (category), clear, pidcolor, pid, clear,

View file

@ -402,7 +402,7 @@ plugin_times_older_than_recurse (gchar * path, time_t regtime)
return TRUE;
}
/* return TRUE iff regtime is more recent than the times of all the .so files
/* return TRUE if regtime is more recent than the times of all the .so files
* in the plugin dirs; ie return TRUE if registry is up to date.
*/
static gboolean