[gstreamermm] Fix the build with GCC 4.5.
- From: José Alburquerque <jaalburqu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gstreamermm] Fix the build with GCC 4.5.
- Date: Fri, 6 Aug 2010 22:19:24 +0000 (UTC)
commit 8d104e5727b10a2de2b1d6b59605d81d9badee69
Author: José Alburquerque <jaalburqu svn gnome org>
Date: Fri Aug 6 17:13:00 2010 -0400
Fix the build with GCC 4.5.
* gstreamer/src/message.ccg (wrap): Store the message type as a
GstMixerMessage type for testing in the second switch clause to avoid
a compiler warning.
ChangeLog | 8 ++++++++
gstreamer/src/message.ccg | 7 +++++--
2 files changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 86e0c26..7c044fb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2010-08-06 José Alburquerque <jaalburqu svn gnome org>
+ Fix the build with GCC 4.5.
+
+ * gstreamer/src/message.ccg (wrap): Store the message type as a
+ GstMixerMessage type for testing in the second switch clause to avoid
+ a compiler warning.
+
+2010-08-06 José Alburquerque <jaalburqu svn gnome org>
+
Mixer: Use correct syntax for object construction.
* gstreamer/src/mixer.ccg (get_volume): Use ArrayHandle<>() for
diff --git a/gstreamer/src/message.ccg b/gstreamer/src/message.ccg
index 31f1aa6..ffe49c9 100644
--- a/gstreamer/src/message.ccg
+++ b/gstreamer/src/message.ccg
@@ -969,7 +969,10 @@ Glib::RefPtr<Gst::Message> Message::wrap(GstMessage* message, bool take_copy)
if(!message)
return result;
- if(gst_mixer_message_get_type(message) == GST_MIXER_MESSAGE_INVALID)
+ GstMixerMessageType const mixer_message_type =
+ gst_mixer_message_get_type(message);
+
+ if(mixer_message_type == GST_MIXER_MESSAGE_INVALID)
{
switch(GST_MESSAGE_TYPE(message))
{
@@ -1056,7 +1059,7 @@ Glib::RefPtr<Gst::Message> Message::wrap(GstMessage* message, bool take_copy)
}
else
{
- switch(GST_MESSAGE_TYPE(message))
+ switch(mixer_message_type)
{
case GST_MIXER_MESSAGE_MUTE_TOGGLED:
wrapper = new Gst::MessageMixerMuteToggled(message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]