summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorJosep Torra <n770galaxy@gmail.com>2011-08-09 23:33:43 +0200
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2011-08-15 21:14:22 +0100
commit7b434c44bfafcbe62cbfbac66fd8dc5968792deb (patch)
treea8c37c64e1d73297049432cd67feef5b4bc5e1c1 /gst
parentb30b78c505e3543ad2dccee0e09a394beca8d98c (diff)
gsterror: explicitly cast to the right GstGError code enum types
Fixes warning #188: enumerated type mixed with another type reported by ICC. https://bugzilla.gnome.org/show_bug.cgi?id=656265
Diffstat (limited to 'gst')
-rw-r--r--gst/gsterror.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gst/gsterror.c b/gst/gsterror.c
index 0183c3487..f3f2d22f4 100644
--- a/gst/gsterror.c
+++ b/gst/gsterror.c
@@ -309,13 +309,13 @@ gst_error_get_message (GQuark domain, gint code)
const gchar *message = NULL;
if (domain == GST_CORE_ERROR)
- message = gst_error_get_core_error (code);
+ message = gst_error_get_core_error ((GstCoreError) code);
else if (domain == GST_LIBRARY_ERROR)
- message = gst_error_get_library_error (code);
+ message = gst_error_get_library_error ((GstLibraryError) code);
else if (domain == GST_RESOURCE_ERROR)
- message = gst_error_get_resource_error (code);
+ message = gst_error_get_resource_error ((GstResourceError) code);
else if (domain == GST_STREAM_ERROR)
- message = gst_error_get_stream_error (code);
+ message = gst_error_get_stream_error ((GstStreamError) code);
else {
g_warning ("No error messages for domain %s", g_quark_to_string (domain));
return g_strdup_printf (_("No error message for domain %s."),