projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b57683d
)
value: explicitly cast to the enum type
author
Josep Torra
<n770galaxy@gmail.com>
Thu, 25 Aug 2011 20:42:08 +0000
(22:42 +0200)
committer
Josep Torra
<n770galaxy@gmail.com>
Fri, 26 Aug 2011 12:11:14 +0000
(14:11 +0200)
Fixes warning #188: enumerated type mixed with another type reported by ICC.
gst/gstvalue.c
patch
|
blob
|
history
diff --git
a/gst/gstvalue.c
b/gst/gstvalue.c
index
3817160
..
f2d6a56
100644
(file)
--- a/
gst/gstvalue.c
+++ b/
gst/gstvalue.c
@@
-2388,7
+2388,7
@@
gst_value_serialize_enum (const GValue * value)
if (G_UNLIKELY (en == NULL && G_VALUE_TYPE (value) == GST_TYPE_FORMAT)) {
const GstFormatDefinition *format_def;
- format_def = gst_format_get_details (g_value_get_enum (value));
+ format_def = gst_format_get_details (
(GstFormat)
g_value_get_enum (value));
g_return_val_if_fail (format_def != NULL, NULL);
return g_strdup (format_def->description);
}