decklinksrc: Set GST_ELEMENT_FLAG_SOURCE on the source
authorSebastian Dröge <sebastian@centricular.com>
Sat, 14 Dec 2013 17:42:11 +0000 (18:42 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Sat, 14 Dec 2013 17:43:03 +0000 (18:43 +0100)
As it does not inherit from basesrc, this flag is not automatically set
and e.g. gst_bin_iterate_sources() and other code does not consider this
element a source.

https://bugzilla.gnome.org/show_bug.cgi?id=680700

sys/decklink/gstdecklinksrc.cpp

index 1501a06..6e9e640 100644 (file)
@@ -176,6 +176,7 @@ gst_decklink_src_init (GstDecklinkSrc * decklinksrc)
       GST_DEBUG_FUNCPTR (gst_decklink_src_video_src_query));
   gst_element_add_pad (GST_ELEMENT (decklinksrc), decklinksrc->videosrcpad);
 
+  GST_OBJECT_FLAG_SET (decklinksrc, GST_ELEMENT_FLAG_SOURCE);
 
   g_cond_init (&decklinksrc->cond);
   g_mutex_init (&decklinksrc->mutex);