[gnome-media] Make it compile on PA 0.9.15 again
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-media] Make it compile on PA 0.9.15 again
- Date: Mon, 27 Jul 2009 15:21:20 +0000 (UTC)
commit 74d4c35835b49b7db6b5d9f29a938890a5f36467
Author: Bastien Nocera <hadess hadess net>
Date: Mon Jul 27 16:20:53 2009 +0100
Make it compile on PA 0.9.15 again
This time in the GvcMixerStream implementations.
gnome-volume-control/src/gvc-mixer-sink.c | 4 ++++
gnome-volume-control/src/gvc-mixer-source.c | 4 ++++
2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/gnome-volume-control/src/gvc-mixer-sink.c b/gnome-volume-control/src/gvc-mixer-sink.c
index 4576db9..5e95f63 100644
--- a/gnome-volume-control/src/gvc-mixer-sink.c
+++ b/gnome-volume-control/src/gvc-mixer-sink.c
@@ -110,6 +110,7 @@ static gboolean
gvc_mixer_sink_change_port (GvcMixerStream *stream,
const char *port)
{
+#if PA_MICRO > 15
pa_operation *o;
guint index;
pa_context *context;
@@ -131,6 +132,9 @@ gvc_mixer_sink_change_port (GvcMixerStream *stream,
pa_operation_unref(o);
return TRUE;
+#else
+ return FALSE;
+#endif /* PA_MICRO > 15 */
}
static GObject *
diff --git a/gnome-volume-control/src/gvc-mixer-source.c b/gnome-volume-control/src/gvc-mixer-source.c
index 8f8927f..d13be9d 100644
--- a/gnome-volume-control/src/gvc-mixer-source.c
+++ b/gnome-volume-control/src/gvc-mixer-source.c
@@ -110,6 +110,7 @@ static gboolean
gvc_mixer_source_change_port (GvcMixerStream *stream,
const char *port)
{
+#if PA_MICRO > 15
pa_operation *o;
guint index;
pa_context *context;
@@ -131,6 +132,9 @@ gvc_mixer_source_change_port (GvcMixerStream *stream,
pa_operation_unref(o);
return TRUE;
+#else
+ return FALSE;
+#endif /* PA_MICRO > 15 */
}
static GObject *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]