c->type = GST_PULSEMIXER_SINK;
if (c->track) {
- int i = g_atomic_int_get ((gint *) & c->track->flags);
+ GstMixerTrackFlags flags = c->track->flags;
- i = (i & ~GST_MIXER_TRACK_MUTE) | (c->muted ? GST_MIXER_TRACK_MUTE : 0);
- g_atomic_int_set ((gint *) & c->track->flags, i);
+ flags =
+ (flags & ~GST_MIXER_TRACK_MUTE) | (c->muted ? GST_MIXER_TRACK_MUTE : 0);
+ c->track->flags = flags;
}
c->operation_success = 1;
c->type = GST_PULSEMIXER_SOURCE;
if (c->track) {
- int i = g_atomic_int_get ((gint *) & c->track->flags);
+ GstMixerTrackFlags flags = c->track->flags;
- i = (i & ~GST_MIXER_TRACK_MUTE) | (c->muted ? GST_MIXER_TRACK_MUTE : 0);
- g_atomic_int_set ((gint *) & c->track->flags, i);
+ flags =
+ (flags & ~GST_MIXER_TRACK_MUTE) | (c->muted ? GST_MIXER_TRACK_MUTE : 0);
+ c->track->flags = flags;
}
c->operation_success = 1;
c->update_mute = TRUE;
if (c->track) {
- int i = g_atomic_int_get ((gint *) & c->track->flags);
+ GstMixerTrackFlags flags = c->track->flags;
- i = (i & ~GST_MIXER_TRACK_MUTE) | (c->muted ? GST_MIXER_TRACK_MUTE : 0);
- g_atomic_int_set ((gint *) & c->track->flags, i);
+ flags =
+ (flags & ~GST_MIXER_TRACK_MUTE) | (c->muted ? GST_MIXER_TRACK_MUTE : 0);
+ c->track->flags = flags;
}
restart_time_event (c);