projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3654d84
)
element: use g_strcmp0 in set_context
author
Matthew Waters
<matthew@centricular.com>
Mon, 26 Sep 2016 14:00:30 +0000
(
00:00
+1000)
committer
Matthew Waters
<matthew@centricular.com>
Wed, 19 Oct 2016 11:24:27 +0000
(22:24 +1100)
It's NULL-safe while the libc implementation may not be.
https://bugzilla.gnome.org/show_bug.cgi?id=771773
gst/gstelement.c
patch
|
blob
|
history
diff --git
a/gst/gstelement.c
b/gst/gstelement.c
index
05bed11
..
73de61e
100644
(file)
--- 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);