mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-10 17:35:59 +00:00
Better output of element flags.
Original commit message from CVS: Better output of element flags.
This commit is contained in:
parent
86bdfc6663
commit
7fb020ffe6
1 changed files with 16 additions and 6 deletions
|
@ -83,6 +83,7 @@ print_element_info (GstElementFactory *factory)
|
||||||
GtkArg *args;
|
GtkArg *args;
|
||||||
guint32 *flags;
|
guint32 *flags;
|
||||||
gint num_args,i;
|
gint num_args,i;
|
||||||
|
gboolean have_flags;
|
||||||
|
|
||||||
element = gst_elementfactory_create(factory,"element");
|
element = gst_elementfactory_create(factory,"element");
|
||||||
if (!element) {
|
if (!element) {
|
||||||
|
@ -151,17 +152,26 @@ print_element_info (GstElementFactory *factory)
|
||||||
} else
|
} else
|
||||||
printf(" none\n\n");
|
printf(" none\n\n");
|
||||||
|
|
||||||
|
have_flags = FALSE;
|
||||||
|
|
||||||
printf("Element Flags:\n");
|
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");
|
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");
|
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");
|
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");
|
printf(" GST_ELEMENT_NO_SEEK\n");
|
||||||
if (! GST_FLAG_IS_SET(element, GST_ELEMENT_COMPLEX | GST_ELEMENT_DECOUPLED |
|
have_flags = TRUE;
|
||||||
GST_ELEMENT_THREAD_SUGGESTED | GST_ELEMENT_NO_SEEK))
|
}
|
||||||
|
if (!have_flags)
|
||||||
printf(" no flags set\n");
|
printf(" no flags set\n");
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue