mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
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
This commit is contained in:
parent
3654d844c1
commit
556c540ecd
1 changed files with 1 additions and 1 deletions
|
@ -3163,7 +3163,7 @@ gst_element_set_context_default (GstElement * element, GstContext * context)
|
||||||
|
|
||||||
/* Always store newest context but never replace
|
/* Always store newest context but never replace
|
||||||
* a persistent one by a non-persistent one */
|
* 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 (context) ||
|
||||||
!gst_context_is_persistent (tmp))) {
|
!gst_context_is_persistent (tmp))) {
|
||||||
gst_context_replace ((GstContext **) & l->data, context);
|
gst_context_replace ((GstContext **) & l->data, context);
|
||||||
|
|
Loading…
Reference in a new issue