mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
Small cleanups
Original commit message from CVS: Small cleanups
This commit is contained in:
parent
93d794c494
commit
4514d28486
3 changed files with 19 additions and 10 deletions
|
@ -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++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue