mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 07:46:38 +00:00
pulsemixer: Fix compiler warnings.
Cast (enum *) to (int *), not necessarily technically right, but plugs #571153.
This commit is contained in:
parent
7756d37531
commit
5cfc906d1b
1 changed files with 6 additions and 6 deletions
|
@ -93,10 +93,10 @@ gst_pulsemixer_ctrl_sink_info_cb (pa_context * context, const pa_sink_info * i,
|
||||||
c->type = GST_PULSEMIXER_SINK;
|
c->type = GST_PULSEMIXER_SINK;
|
||||||
|
|
||||||
if (c->track) {
|
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);
|
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;
|
c->operation_success = 1;
|
||||||
|
@ -142,10 +142,10 @@ gst_pulsemixer_ctrl_source_info_cb (pa_context * context,
|
||||||
c->type = GST_PULSEMIXER_SOURCE;
|
c->type = GST_PULSEMIXER_SOURCE;
|
||||||
|
|
||||||
if (c->track) {
|
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);
|
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;
|
c->operation_success = 1;
|
||||||
|
@ -572,10 +572,10 @@ gst_pulsemixer_ctrl_set_mute (GstPulseMixerCtrl * c, GstMixerTrack * track,
|
||||||
c->update_mute = TRUE;
|
c->update_mute = TRUE;
|
||||||
|
|
||||||
if (c->track) {
|
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);
|
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);
|
restart_time_event (c);
|
||||||
|
|
Loading…
Reference in a new issue