From 4514d28486de78ca1ab67c5415b4a09e5b9fe50e Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sat, 2 Nov 2002 13:22:31 +0000 Subject: [PATCH] Small cleanups Original commit message from CVS: Small cleanups --- gst/gstevent.h | 3 ++- gst/gstformat.h | 9 +++++---- tools/gst-inspect.c | 17 ++++++++++++----- 3 files changed, 19 insertions(+), 10 deletions(-) diff --git a/gst/gstevent.h b/gst/gstevent.h index a305e5a046..543a76ea4c 100644 --- a/gst/gstevent.h +++ b/gst/gstevent.h @@ -44,7 +44,8 @@ typedef enum { GST_EVENT_SEGMENT_DONE, GST_EVENT_SIZE, GST_EVENT_RATE, - GST_EVENT_FILLER + GST_EVENT_FILLER, + GST_EVENT_TS_OFFSET } GstEventType; extern GType _gst_event_type; diff --git a/gst/gstformat.h b/gst/gstformat.h index d4b80d9676..b7c0944c62 100644 --- a/gst/gstformat.h +++ b/gst/gstformat.h @@ -62,13 +62,14 @@ functionname (GstPad *pad) \ void _gst_format_initialize (void); /* register a new format */ -GstFormat gst_format_register (const gchar *nick, const gchar *description); - +GstFormat gst_format_register (const gchar *nick, + const gchar *description); GstFormat gst_format_get_by_nick (const gchar *nick); /* query for format details */ -const GstFormatDefinition * gst_format_get_details (GstFormat format); -const GList * gst_format_get_definitions (void); +const GstFormatDefinition* + gst_format_get_details (GstFormat format); +const GList* gst_format_get_definitions (void); G_END_DECLS diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c index eb45f55582..529544f7ee 100644 --- a/tools/gst-inspect.c +++ b/tools/gst-inspect.c @@ -418,9 +418,13 @@ print_element_properties (GstElement *element) if (flags) g_string_free (flags, TRUE); } - else { - g_print ("%-23.23s Unknown type %ld \"%s\"", "",param->value_type, + else if (G_IS_PARAM_SPEC_OBJECT (param)) { + g_print("%-23.23s Object of type \"%s\"", "", g_type_name(param->value_type)); + } + else { + g_print ("%-23.23s Unknown type %ld \"%s\"", "",param->value_type, + g_type_name(param->value_type)); } break; } @@ -730,14 +734,17 @@ print_element_info (GstElementFactory *factory) return_type = query->return_type; param_types = query->param_types; - g_print (" \"%s\" :\t %s user_function (%s* object, \n", + g_print (" \"%s\" :\t %s user_function (%s* object", query->signal_name, g_type_name (return_type), g_type_name (G_OBJECT_TYPE (element))); for (j = 0; j < n_params; j++) { - g_print (" \t\t\t\t%s arg%d,\n", g_type_name (param_types[j]), j); + g_print (",\n \t\t\t\t%s arg%d", g_type_name (param_types[j]), j); } - g_print (" \t\t\t\tgpointer user_data);\n"); + if (k == 0) + g_print (",\n \t\t\t\tgpointer user_data);\n"); + else + g_print (");\n"); counted++; }