summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2009-02-10 11:25:49 +0100
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2009-02-13 18:50:52 +0100
commit5cfc906d1be06ef1af58c909dd56f6f4cbd9af09 (patch)
treea53d73af162c63edc701683e3d44a24164ad3e2f /ext
parent7756d37531ea48d1890363e8bda9b9872c771a9f (diff)
pulsemixer: Fix compiler warnings.
Cast (enum *) to (int *), not necessarily technically right, but plugs #571153.
Diffstat (limited to 'ext')
-rw-r--r--ext/pulse/pulsemixerctrl.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/pulse/pulsemixerctrl.c b/ext/pulse/pulsemixerctrl.c
index a7bc9a17..41b68cfc 100644
--- a/ext/pulse/pulsemixerctrl.c
+++ b/ext/pulse/pulsemixerctrl.c
@@ -93,10 +93,10 @@ gst_pulsemixer_ctrl_sink_info_cb (pa_context * context, const pa_sink_info * i,
c->type = GST_PULSEMIXER_SINK;
if (c->track) {
- int i = g_atomic_int_get (&c->track->flags);
+ int i = g_atomic_int_get ((gint *) & c->track->flags);
i = (i & ~GST_MIXER_TRACK_MUTE) | (c->muted ? GST_MIXER_TRACK_MUTE : 0);
- g_atomic_int_set (&c->track->flags, i);
+ g_atomic_int_set ((gint *) & c->track->flags, i);
}
c->operation_success = 1;
@@ -142,10 +142,10 @@ gst_pulsemixer_ctrl_source_info_cb (pa_context * context,
c->type = GST_PULSEMIXER_SOURCE;
if (c->track) {
- int i = g_atomic_int_get (&c->track->flags);
+ int i = g_atomic_int_get ((gint *) & c->track->flags);
i = (i & ~GST_MIXER_TRACK_MUTE) | (c->muted ? GST_MIXER_TRACK_MUTE : 0);
- g_atomic_int_set (&c->track->flags, i);
+ g_atomic_int_set ((gint *) & c->track->flags, i);
}
c->operation_success = 1;
@@ -572,10 +572,10 @@ gst_pulsemixer_ctrl_set_mute (GstPulseMixerCtrl * c, GstMixerTrack * track,
c->update_mute = TRUE;
if (c->track) {
- int i = g_atomic_int_get (&c->track->flags);
+ int i = g_atomic_int_get ((gint *) & c->track->flags);
i = (i & ~GST_MIXER_TRACK_MUTE) | (c->muted ? GST_MIXER_TRACK_MUTE : 0);
- g_atomic_int_set (&c->track->flags, i);
+ g_atomic_int_set ((gint *) & c->track->flags, i);
}
restart_time_event (c);