summaryrefslogtreecommitdiff
path: root/gst/gstinfo.c
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-11-28 14:17:54 +0100
committerSebastian Dröge <sebastian@centricular.com>2014-12-01 09:51:37 +0100
commit154eefecc93b69c6af8040ceef5f004e595a827f (patch)
treefdda1093ac700aa2ac17268ba37c69aa8ac2b209 /gst/gstinfo.c
parentf2e4c255880b199bd3b3b41286a41f6c14a02f51 (diff)
Don't compare booleans for equality to TRUE and FALSE
TRUE is 1, but every other non-zero value is also considered true. Comparing for equality with TRUE would only consider 1 but not the others. Also normalize booleans in a few places.
Diffstat (limited to 'gst/gstinfo.c')
-rw-r--r--gst/gstinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/gstinfo.c b/gst/gstinfo.c
index 2c3f01c53..ffff06d6d 100644
--- a/gst/gstinfo.c
+++ b/gst/gstinfo.c
@@ -1799,7 +1799,7 @@ gst_debug_set_threshold_from_string (const gchar * list, gboolean reset)
g_assert (list);
- if (reset == TRUE)
+ if (reset)
gst_debug_set_default_threshold (0);
split = g_strsplit (list, ",", 0);