summaryrefslogtreecommitdiff
path: root/gst/encoding/gstencodebin.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/encoding/gstencodebin.c')
-rw-r--r--gst/encoding/gstencodebin.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/encoding/gstencodebin.c b/gst/encoding/gstencodebin.c
index a8e90521b..11c0a46df 100644
--- a/gst/encoding/gstencodebin.c
+++ b/gst/encoding/gstencodebin.c
@@ -1061,6 +1061,8 @@ _has_class (GstElement * element, const gchar * classname)
klass = GST_ELEMENT_GET_CLASS (element);
value = gst_element_class_get_metadata (klass, GST_ELEMENT_METADATA_KLASS);
+ if (!value)
+ return FALSE;
return strstr (value, classname) != NULL;
}