From 556c540ecdd9adf516e6d6d78e434ed20fdcb895 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Tue, 27 Sep 2016 00:00:30 +1000 Subject: [PATCH] element: use g_strcmp0 in set_context It's NULL-safe while the libc implementation may not be. https://bugzilla.gnome.org/show_bug.cgi?id=771773 --- gst/gstelement.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/gstelement.c b/gst/gstelement.c index 05bed116a0..73de61e9b1 100644 --- a/gst/gstelement.c +++ b/gst/gstelement.c @@ -3163,7 +3163,7 @@ gst_element_set_context_default (GstElement * element, GstContext * context) /* Always store newest context but never replace * a persistent one by a non-persistent one */ - if (strcmp (context_type, tmp_type) == 0 && + if (g_strcmp0 (context_type, tmp_type) == 0 && (gst_context_is_persistent (context) || !gst_context_is_persistent (tmp))) { gst_context_replace ((GstContext **) & l->data, context);