Commit 7fb020ff authored by Wim Taymans's avatar Wim Taymans
Browse files

Better output of element flags.

Original commit message from CVS:
Better output of element flags.
parent 86bdfc66
......@@ -83,6 +83,7 @@ print_element_info (GstElementFactory *factory)
GtkArg *args;
guint32 *flags;
gint num_args,i;
gboolean have_flags;
element = gst_elementfactory_create(factory,"element");
if (!element) {
......@@ -151,17 +152,26 @@ print_element_info (GstElementFactory *factory)
} else
printf(" none\n\n");
have_flags = FALSE;
printf("Element Flags:\n");
if (GST_FLAG_IS_SET(element,GST_ELEMENT_COMPLEX))
if (GST_FLAG_IS_SET(element,GST_ELEMENT_COMPLEX)) {
printf(" GST_ELEMENT_COMPLEX\n");
if (GST_FLAG_IS_SET(element,GST_ELEMENT_DECOUPLED))
have_flags = TRUE;
}
if (GST_FLAG_IS_SET(element,GST_ELEMENT_DECOUPLED)) {
printf(" GST_ELEMENT_DECOUPLED\n");
if (GST_FLAG_IS_SET(element,GST_ELEMENT_THREAD_SUGGESTED))
have_flags = TRUE;
}
if (GST_FLAG_IS_SET(element,GST_ELEMENT_THREAD_SUGGESTED)) {
printf(" GST_ELEMENT_THREADSUGGESTED\n");
if (GST_FLAG_IS_SET(element,GST_ELEMENT_NO_SEEK))
have_flags = TRUE;
}
if (GST_FLAG_IS_SET(element,GST_ELEMENT_NO_SEEK)) {
printf(" GST_ELEMENT_NO_SEEK\n");
if (! GST_FLAG_IS_SET(element, GST_ELEMENT_COMPLEX | GST_ELEMENT_DECOUPLED |
GST_ELEMENT_THREAD_SUGGESTED | GST_ELEMENT_NO_SEEK))
have_flags = TRUE;
}
if (!have_flags)
printf(" no flags set\n");
printf("\n");
......
Supports Markdown
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