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
This commit is contained in:
Josep Torra 2011-08-09 23:33:43 +02:00 committed by Tim-Philipp Müller
parent b30b78c505
commit 7b434c44bf

View file

@ -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."),