summaryrefslogtreecommitdiff
path: root/gst/gststructure.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/gststructure.c')
-rw-r--r--gst/gststructure.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/gststructure.c b/gst/gststructure.c
index c83165ddc6..0f2dc9e2a9 100644
--- a/gst/gststructure.c
+++ b/gst/gststructure.c
@@ -1756,7 +1756,7 @@ gst_structure_value_get_generic_type (GValue * val)
|| G_VALUE_TYPE (val) == GST_TYPE_ARRAY) {
GArray *array = g_value_peek_pointer (val);
- if (array->len) {
+ if (array->len > 0) {
GValue *value = &g_array_index (array, GValue, 0);
return gst_structure_value_get_generic_type (value);