mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
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:
parent
b30b78c505
commit
7b434c44bf
1 changed files with 4 additions and 4 deletions
|
@ -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."),
|
||||
|
|
Loading…
Reference in a new issue