element: add IS_SOURCE flag

Add the GST_ELEMENT_IS_SOURCE flag so that we can tag source elements like we
can with sink elements.
This commit is contained in:
Wim Taymans 2010-10-11 10:53:41 +02:00
parent 0bb4fafd30
commit eed98f6c2c

View file

@ -317,6 +317,7 @@ typedef enum /*< flags=0 >*/
* @GST_ELEMENT_IS_SINK: the element is a sink
* @GST_ELEMENT_UNPARENTING: Child is being removed from the parent bin.
* gst_bin_remove() on a child already being removed immediately returns FALSE
* @GST_ELEMENT_IS_SOURCE: the element is a source. Since 0.10.31
* @GST_ELEMENT_FLAG_LAST: offset to define more flags
*
* The standard flags that an element may have.
@ -326,6 +327,7 @@ typedef enum
GST_ELEMENT_LOCKED_STATE = (GST_OBJECT_FLAG_LAST << 0),
GST_ELEMENT_IS_SINK = (GST_OBJECT_FLAG_LAST << 1),
GST_ELEMENT_UNPARENTING = (GST_OBJECT_FLAG_LAST << 2),
GST_ELEMENT_IS_SOURCE = (GST_OBJECT_FLAG_LAST << 3),
/* padding */
GST_ELEMENT_FLAG_LAST = (GST_OBJECT_FLAG_LAST << 16)
} GstElementFlags;