Commit 4514d284 authored by Wim Taymans's avatar Wim Taymans
Browse files

Small cleanups

Original commit message from CVS:
Small cleanups
parent 93d794c4
......@@ -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;
......
......@@ -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
......
......@@ -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++;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment