docs: Don't try to print pad templates of non-GstElement types
authorSebastian Dröge <sebastian@centricular.com>
Tue, 26 May 2020 10:06:20 +0000 (13:06 +0300)
committerThibault Saunier <tsaunier@igalia.com>
Thu, 4 Jun 2020 19:49:23 +0000 (15:49 -0400)
docs/gst-hotdoc-plugins-scanner.c

index 3858ed1..1af1e0f 100644 (file)
@@ -19,7 +19,7 @@ has_sometimes_template (GObject * object)
   GstElementClass *klass;
   GList *l;
 
-  if (!GST_IS_OBJECT (object))
+  if (!GST_IS_ELEMENT (object))
     return FALSE;
 
   klass = GST_ELEMENT_GET_CLASS (object);