summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2009-04-10 08:51:02 +0200
committerEdward Hervey <bilboed@bilboed.com>2010-12-03 11:33:37 +0100
commit3a9396d259ba1982e869db7be4d86fe1fd179373 (patch)
treea2930340403887fbb4891c7771680e71fe18b861 /gst
parent6b002234cd8d57896d28eedb8f4a5c08729dccc1 (diff)
gstinfo: remove useless ternary operator usage.
Diffstat (limited to 'gst')
-rw-r--r--gst/gstinfo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/gstinfo.c b/gst/gstinfo.c
index e2756f0752..312b9b8108 100644
--- a/gst/gstinfo.c
+++ b/gst/gstinfo.c
@@ -298,7 +298,7 @@ _priv_gst_in_valgrind (void)
g_assert (in_valgrind == GST_VG_NO_VALGRIND ||
in_valgrind == GST_VG_INSIDE);
}
- return (in_valgrind == GST_VG_INSIDE) ? TRUE : FALSE;
+ return (in_valgrind == GST_VG_INSIDE);
}
/**
@@ -1166,7 +1166,7 @@ gst_debug_remove_log_function_by_data (gpointer data)
void
gst_debug_set_colored (gboolean colored)
{
- g_atomic_int_set (&__use_color, colored ? 1 : 0);
+ g_atomic_int_set (&__use_color, (gint) colored);
}
/**
@@ -1179,7 +1179,7 @@ gst_debug_set_colored (gboolean colored)
gboolean
gst_debug_is_colored (void)
{
- return g_atomic_int_get (&__use_color) == 0 ? FALSE : TRUE;
+ return (gboolean) g_atomic_int_get (&__use_color);
}
/**