summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosep Torra <n770galaxy@gmail.com>2011-08-09 22:29:44 +0200
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2011-08-15 21:13:03 +0100
commitabda75bcf58e2fdf7fde5c75caa5fe569c50b1f9 (patch)
tree08a7f5f8f9488517ed7725d7973e6cf1d1cdf162
parent232a651d682839fa4f979d1d868876bab5dcd9db (diff)
gst: use GstDebugLevel enum type to fix a warning building with ICC
https://bugzilla.gnome.org/show_bug.cgi?id=656265
-rw-r--r--gst/gst.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gst/gst.c b/gst/gst.c
index e109effdb..aa187f64f 100644
--- a/gst/gst.c
+++ b/gst/gst.c
@@ -217,7 +217,7 @@ parse_debug_category (gchar * str, const gchar ** category)
}
static gboolean
-parse_debug_level (gchar * str, gint * level)
+parse_debug_level (gchar * str, GstDebugLevel * level)
{
if (!str)
return FALSE;
@@ -227,7 +227,7 @@ parse_debug_level (gchar * str, gint * level)
if (str[0] != NUL && str[1] == NUL
&& str[0] >= '0' && str[0] < '0' + GST_LEVEL_COUNT) {
- *level = str[0] - '0';
+ *level = (GstDebugLevel) (str[0] - '0');
return TRUE;
}
@@ -249,7 +249,7 @@ parse_debug_list (const gchar * list)
gchar **values = g_strsplit (*walk, ":", 2);
if (values[0] && values[1]) {
- gint level;
+ GstDebugLevel level;
const gchar *category;
if (parse_debug_category (values[0], &category)
@@ -259,7 +259,7 @@ parse_debug_list (const gchar * list)
g_strfreev (values);
} else {
- gint level;
+ GstDebugLevel level;
if (parse_debug_level (*walk, &level))
gst_debug_set_default_threshold (level);
@@ -902,9 +902,9 @@ parse_one_option (gint opt, const gchar * arg, GError ** err)
}
#ifndef GST_DISABLE_GST_DEBUG
case ARG_DEBUG_LEVEL:{
- gint tmp = 0;
+ GstDebugLevel tmp = GST_LEVEL_NONE;
- tmp = strtol (arg, NULL, 0);
+ tmp = (GstDebugLevel) strtol (arg, NULL, 0);
if (tmp >= 0 && tmp < GST_LEVEL_COUNT) {
gst_debug_set_default_threshold (tmp);
}