Added more colors for props/caps/clock/negotiation.

Original commit message from CVS:
Added more colors for props/caps/clock/negotiation.
This commit is contained in:
Wim Taymans 2001-04-28 18:59:03 +00:00
parent fc0fff488b
commit 7d7de1b296
2 changed files with 15 additions and 15 deletions

View file

@ -82,15 +82,15 @@ const gchar *_gst_category_colors[32] = {
[GST_CAT_COTHREADS] = "00;32", [GST_CAT_COTHREADS] = "00;32",
[GST_CAT_COTHREAD_SWITCH] = "00;32", [GST_CAT_COTHREAD_SWITCH] = "00;32",
[GST_CAT_AUTOPLUG] = "00;34", [GST_CAT_AUTOPLUG] = "00;34",
[GST_CAT_AUTOPLUG_ATTEMPT] = "00;34", [GST_CAT_AUTOPLUG_ATTEMPT] = "00;36;44",
[GST_CAT_PARENTAGE] = "01;37;41", // !! [GST_CAT_PARENTAGE] = "01;37;41", // !!
[GST_CAT_STATES] = "00;31", [GST_CAT_STATES] = "00;31",
[GST_CAT_PLANNING] = "00;35", [GST_CAT_PLANNING] = "00;35",
[GST_CAT_SCHEDULING] = "00;35", [GST_CAT_SCHEDULING] = "00;35",
[GST_CAT_DATAFLOW] = "00;32", [GST_CAT_DATAFLOW] = "00;32",
[GST_CAT_BUFFER] = "00;32", [GST_CAT_BUFFER] = "00;32",
[GST_CAT_CAPS] = "01;37;41", // !! [GST_CAT_CAPS] = "04;34",
[GST_CAT_CLOCK] = "01;37;41", // !! [GST_CAT_CLOCK] = "00;33", // !!
[GST_CAT_ELEMENT_PADS] = "01;37;41", // !! [GST_CAT_ELEMENT_PADS] = "01;37;41", // !!
[GST_CAT_ELEMENTFACTORY] = "01;37;41", // !! [GST_CAT_ELEMENTFACTORY] = "01;37;41", // !!
[GST_CAT_PADS] = "01;37;41", // !! [GST_CAT_PADS] = "01;37;41", // !!
@ -98,11 +98,11 @@ const gchar *_gst_category_colors[32] = {
[GST_CAT_PLUGIN_LOADING] = "00;36", [GST_CAT_PLUGIN_LOADING] = "00;36",
[GST_CAT_PLUGIN_ERRORS] = "05;31", [GST_CAT_PLUGIN_ERRORS] = "05;31",
[GST_CAT_PLUGIN_INFO] = "00;36", [GST_CAT_PLUGIN_INFO] = "00;36",
[GST_CAT_PROPERTIES] = "01;37;41", // !! [GST_CAT_PROPERTIES] = "00;37;44", // !!
[GST_CAT_THREAD] = "00;31", [GST_CAT_THREAD] = "00;31",
[GST_CAT_TYPES] = "01;37;41", // !! [GST_CAT_TYPES] = "01;37;41", // !!
[GST_CAT_XML] = "01;37;41", // !! [GST_CAT_XML] = "01;37;41", // !!
[GST_CAT_NEGOTIATION] = "01;37;41", // !! [GST_CAT_NEGOTIATION] = "07;34",
[31] = "", [31] = "",
}; };

View file

@ -53,19 +53,19 @@ gst_props_debug_entry (GstPropsEntry *entry)
{ {
switch (entry->propstype) { switch (entry->propstype) {
case GST_PROPS_INT_ID: case GST_PROPS_INT_ID:
GST_DEBUG (0, "%d\n", entry->data.int_data); GST_DEBUG (GST_CAT_PROPERTIES, "%d\n", entry->data.int_data);
break; break;
case GST_PROPS_FOURCC_ID: case GST_PROPS_FOURCC_ID:
GST_DEBUG (0, "%4.4s\n", (gchar*)&entry->data.fourcc_data); GST_DEBUG (GST_CAT_PROPERTIES, "%4.4s\n", (gchar*)&entry->data.fourcc_data);
break; break;
case GST_PROPS_BOOL_ID: case GST_PROPS_BOOL_ID:
GST_DEBUG (0, "%d\n", entry->data.bool_data); GST_DEBUG (GST_CAT_PROPERTIES, "%d\n", entry->data.bool_data);
break; break;
case GST_PROPS_STRING_ID: case GST_PROPS_STRING_ID:
GST_DEBUG (0, "%s\n", entry->data.string_data.string); GST_DEBUG (GST_CAT_PROPERTIES, "%s\n", entry->data.string_data.string);
break; break;
case GST_PROPS_INT_RANGE_ID: case GST_PROPS_INT_RANGE_ID:
GST_DEBUG (0, "%d-%d\n", entry->data.int_range_data.min, GST_DEBUG (GST_CAT_PROPERTIES, "%d-%d\n", entry->data.int_range_data.min,
entry->data.int_range_data.max); entry->data.int_range_data.max);
break; break;
default: default:
@ -584,7 +584,7 @@ gst_props_entry_check_list_compatibility (GstPropsEntry *entry1, GstPropsEntry *
static gboolean static gboolean
gst_props_entry_check_compatibility (GstPropsEntry *entry1, GstPropsEntry *entry2) gst_props_entry_check_compatibility (GstPropsEntry *entry1, GstPropsEntry *entry2)
{ {
GST_DEBUG (0,"compare: %s %s\n", g_quark_to_string (entry1->propid), GST_DEBUG (GST_CAT_PROPERTIES,"compare: %s %s\n", g_quark_to_string (entry1->propid),
g_quark_to_string (entry2->propid)); g_quark_to_string (entry2->propid));
switch (entry1->propstype) { switch (entry1->propstype) {
case GST_PROPS_LIST_ID: case GST_PROPS_LIST_ID:
@ -729,14 +729,14 @@ gst_props_check_compatibility (GstProps *fromprops, GstProps *toprops)
entry2 = (GstPropsEntry *)sinklist->data; entry2 = (GstPropsEntry *)sinklist->data;
while (entry1->propid < entry2->propid) { while (entry1->propid < entry2->propid) {
GST_DEBUG (0,"source is more specific in \"%s\"\n", g_quark_to_string (entry1->propid)); GST_DEBUG (GST_CAT_PROPERTIES,"source is more specific in \"%s\"\n", g_quark_to_string (entry1->propid));
more++; more++;
sourcelist = g_list_next (sourcelist); sourcelist = g_list_next (sourcelist);
if (sourcelist) entry1 = (GstPropsEntry *)sourcelist->data; if (sourcelist) entry1 = (GstPropsEntry *)sourcelist->data;
else goto end; else goto end;
} }
while (entry1->propid > entry2->propid) { while (entry1->propid > entry2->propid) {
GST_DEBUG (0,"source has missing property \"%s\"\n", g_quark_to_string (entry2->propid)); GST_DEBUG (GST_CAT_PROPERTIES,"source has missing property \"%s\"\n", g_quark_to_string (entry2->propid));
missing++; missing++;
sinklist = g_list_next (sinklist); sinklist = g_list_next (sinklist);
if (sinklist) entry2 = (GstPropsEntry *)sinklist->data; if (sinklist) entry2 = (GstPropsEntry *)sinklist->data;
@ -745,7 +745,7 @@ gst_props_check_compatibility (GstProps *fromprops, GstProps *toprops)
if (!gst_props_entry_check_compatibility (entry1, entry2)) { if (!gst_props_entry_check_compatibility (entry1, entry2)) {
compatible = FALSE; compatible = FALSE;
GST_DEBUG (0, "%s are not compatible\n:", GST_DEBUG (GST_CAT_PROPERTIES, "%s are not compatible\n:",
g_quark_to_string (entry1->propid)); g_quark_to_string (entry1->propid));
gst_props_debug_entry (entry1); gst_props_debug_entry (entry1);
gst_props_debug_entry (entry2); gst_props_debug_entry (entry2);
@ -758,7 +758,7 @@ gst_props_check_compatibility (GstProps *fromprops, GstProps *toprops)
GstPropsEntry *entry2; GstPropsEntry *entry2;
entry2 = (GstPropsEntry *)sinklist->data; entry2 = (GstPropsEntry *)sinklist->data;
missing++; missing++;
GST_DEBUG (0,"source has missing property \"%s\"\n", g_quark_to_string (entry2->propid)); GST_DEBUG (GST_CAT_PROPERTIES,"source has missing property \"%s\"\n", g_quark_to_string (entry2->propid));
} }
end: end: