mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
Added enum values with default removed debugging -g from Makefile
Original commit message from CVS: Added enum values with default removed debugging -g from Makefile
This commit is contained in:
parent
00aff5b225
commit
22a79f5938
2 changed files with 16 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
bin_PROGRAMS = gstreamer-launch gstreamer-register gstreamer-inspect
|
||||
|
||||
CFLAGS = -g -Wall -O2
|
||||
CFLAGS = -Wall -O2
|
||||
|
||||
LDADD = $(GLIB_LIBS) $(GTK_LIBS) $(top_builddir)/gst/libgst.la
|
||||
INCLUDES = $(GLIB_CFLAGS) $(GTK_CFLAGS) -I$(top_srcdir)
|
||||
|
|
|
@ -27,8 +27,8 @@ void print_prop(GstPropsEntry *prop,gboolean showname,gchar *pfx) {
|
|||
break;
|
||||
case GST_PROPS_FOURCC_ID_NUM:
|
||||
printf("FourCC: %c%c%c%c\n",
|
||||
prop->data.fourcc_data>>24 & 0xff,prop->data.fourcc_data>>16 & 0xff,
|
||||
prop->data.fourcc_data>>8 & 0xff,prop->data.fourcc_data & 0xff);
|
||||
prop->data.fourcc_data & 0xff,prop->data.fourcc_data>>8 & 0xff,
|
||||
prop->data.fourcc_data>>16 & 0xff,prop->data.fourcc_data>>24 & 0xff);
|
||||
break;
|
||||
case GST_PROPS_LIST_ID_NUM:
|
||||
printf("List:\n");
|
||||
|
@ -256,6 +256,19 @@ gint print_element_info(GstElementFactory *factory) {
|
|||
default:
|
||||
if (args[i].type == GST_TYPE_FILENAME)
|
||||
printf("Filename");
|
||||
else if (GTK_FUNDAMENTAL_TYPE (args[i].type) == GTK_TYPE_ENUM) {
|
||||
GtkEnumValue *values;
|
||||
guint j = 0;
|
||||
|
||||
printf("Enum (default %d)", GTK_VALUE_ENUM (args[i]));
|
||||
values = gtk_type_enum_get_values (args[i].type);
|
||||
while (values[j].value_name) {
|
||||
printf("\n (%d): \t%s", values[j].value, values[j].value_nick);
|
||||
j++;
|
||||
}
|
||||
}
|
||||
else if (args[i].type == GTK_TYPE_WIDGET)
|
||||
printf("GtkWidget");
|
||||
else
|
||||
printf("unknown");
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue