]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/gstreamer0-10.git/commitdiff
element: add IS_SOURCE flag
authorWim Taymans <wim.taymans@collabora.co.uk>
Mon, 11 Oct 2010 08:53:41 +0000 (10:53 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 11 Oct 2010 09:16:27 +0000 (11:16 +0200)
Add the GST_ELEMENT_IS_SOURCE flag so that we can tag source elements like we
can with sink elements.

gst/gstelement.h

index 12ed0dfa869c42de501dc5efe7e4c44d36020339..440350cfc76fcc7797c0ab31838123d17610e873 100644 (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;