mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +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;
|
||||
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");
|
||||
|
||||
|
|
Loading…
Reference in a new issue