-#if 0
-static void
-print_formats (const GstFormat * formats)
-{
- while (formats && *formats) {
- const GstFormatDefinition *definition;
-
- definition = gst_format_get_details (*formats);
- if (definition)
- n_print ("\t\t(%d):\t%s (%s)\n", *formats,
- definition->nick, definition->description);
- else
- n_print ("\t\t(%d):\tUnknown format\n", *formats);
-
- formats++;
- }
-}
-
-static void
-print_event_masks (const GstEventMask * masks)
-{
- GType event_type;
- GEnumClass *klass;
- GType event_flags;
- GFlagsClass *flags_class = NULL;
-
- event_type = gst_event_type_get_type ();
- klass = (GEnumClass *) g_type_class_ref (event_type);
-
- while (masks && masks->type) {
- GEnumValue *value;
- gint flags = 0, index = 0;
-
- switch (masks->type) {
- case GST_EVENT_SEEK:
- flags = masks->flags;
- event_flags = gst_seek_type_get_type ();
- flags_class = (GFlagsClass *) g_type_class_ref (event_flags);
- break;
- default:
- break;
- }
-
- value = g_enum_get_value (klass, masks->type);
- g_print ("\t\t%s ", value->value_nick);
-
- while (flags) {
- GFlagsValue *value;
-
- if (flags & 1) {
- value = g_flags_get_first_value (flags_class, 1 << index);
-
- if (value)
- g_print ("| %s ", value->value_nick);
- else
- g_print ("| ? ");
- }
- flags >>= 1;
- index++;
- }
- g_print ("\n");
-
- masks++;
- }
-}
-#endif
-