+/*-*- Mode: C; c-basic-offset: 2 -*-*/
+
/*
* GStreamer pulseaudio plugin
*
}
if (!i && eol < 0) {
- c->operation_success = 0;
+ c->operation_success = FALSE;
pa_threaded_mainloop_signal (c->mainloop, 0);
return;
}
c->index = i->index;
c->channel_map = i->channel_map;
c->volume = i->volume;
- c->muted = i->mute;
+ c->muted = !!i->mute;
c->type = GST_PULSEMIXER_SINK;
if (c->track) {
c->track->flags = flags;
}
- c->operation_success = 1;
+ c->operation_success = TRUE;
pa_threaded_mainloop_signal (c->mainloop, 0);
}
}
if (!i && eol < 0) {
- c->operation_success = 0;
+ c->operation_success = FALSE;
pa_threaded_mainloop_signal (c->mainloop, 0);
return;
}
c->index = i->index;
c->channel_map = i->channel_map;
c->volume = i->volume;
- c->muted = i->mute;
+ c->muted = !!i->mute;
c->type = GST_PULSEMIXER_SOURCE;
if (c->track) {
c->track->flags = flags;
}
- c->operation_success = 1;
+ c->operation_success = TRUE;
pa_threaded_mainloop_signal (c->mainloop, 0);
}
{
GstPulseMixerCtrl *c = (GstPulseMixerCtrl *) userdata;
- c->operation_success = success;
+ c->operation_success = !!success;
pa_threaded_mainloop_signal (c->mainloop, 0);
}
goto unlock_and_fail;
}
- c->operation_success = 0;
+ c->operation_success = FALSE;
while (pa_operation_get_state (o) != PA_OPERATION_DONE) {
pa_threaded_mainloop_wait (c->mainloop);
CHECK_DEAD_GOTO (c, unlock_and_fail);
goto unlock_and_fail;
}
- c->operation_success = 0;
+ c->operation_success = FALSE;
while (pa_operation_get_state (o) != PA_OPERATION_DONE) {
pa_threaded_mainloop_wait (c->mainloop);
CHECK_DEAD_GOTO (c, unlock_and_fail);
goto unlock_and_fail;
}
- c->operation_success = 0;
+ c->operation_success = FALSE;
while (pa_operation_get_state (o) != PA_OPERATION_DONE) {
pa_threaded_mainloop_wait (c->mainloop);
CHECK_DEAD_GOTO (c, unlock_and_fail);
pa_cvolume_mute (&c->volume, PA_CHANNELS_MAX);
pa_channel_map_init (&c->channel_map);
- c->muted = 0;
+ c->muted = FALSE;
c->index = PA_INVALID_INDEX;
c->type = type;
c->name = NULL;
if (c->update_mute) {
if (c->type == GST_PULSEMIXER_SINK)
- o = pa_context_set_sink_mute_by_index (c->context, c->index, !!c->muted,
+ o = pa_context_set_sink_mute_by_index (c->context, c->index, c->muted,
NULL, NULL);
else
- o = pa_context_set_source_mute_by_index (c->context, c->index, !!c->muted,
+ o = pa_context_set_source_mute_by_index (c->context, c->index, c->muted,
NULL, NULL);
if (!o)
pa_threaded_mainloop_lock (c->mainloop);
- c->muted = !!mute;
+ c->muted = mute;
c->update_mute = TRUE;
if (c->track) {
+/*-*- Mode: C; c-basic-offset: 2 -*-*/
+
/*
* GStreamer pulseaudio plugin
*
gchar *name, *description;
pa_channel_map channel_map;
+
pa_cvolume volume;
- int muted;
+ gboolean muted:1;
+
+ gboolean update_volume:1;
+ gboolean update_mute:1;
+
+ gboolean operation_success:1;
+
guint32 index;
GstPulseMixerType type;
- int operation_success;
GstMixerTrack *track;
int outstandig_queries;
int ignore_queries;
- gboolean update_volume, update_mute;
};
GstPulseMixerCtrl *gst_pulsemixer_ctrl_new (GObject *object, const gchar * server,
goto unlock_and_fail;
}
- c->operation_success = 0;
+ c->operation_success = FALSE;
while (pa_operation_get_state (o) == PA_OPERATION_RUNNING) {
goto unlock_and_fail;
}
- c->operation_success = 0;
+ c->operation_success = FALSE;
while (pa_operation_get_state (o) == PA_OPERATION_RUNNING) {
if (gst_pulseprobe_is_dead (c))
c->prop_id = prop_id;
c->properties =
g_list_append (NULL, g_object_class_find_property (klass, "device"));
+
c->devices = NULL;
- c->devices_valid = 0;
+ c->devices_valid = FALSE;
+
+ c->operation_success = FALSE;
return c;
}
+/*-*- Mode: C; c-basic-offset: 2 -*-*/
+
/*
* GStreamer pulseaudio plugin
*
{
GObject *object;
gchar *server;
+
GList *devices;
- gboolean devices_valid;
+ gboolean devices_valid:1;
+
+ gboolean operation_success:1;
+
+ gboolean enumerate_sinks:1;
+ gboolean enumerate_sources:1;
pa_threaded_mainloop *mainloop;
pa_context *context;
GList *properties;
guint prop_id;
-
- int enumerate_sinks, enumerate_sources;
- int operation_success;
};
GstPulseProbe *gst_pulseprobe_new (GObject *object, GObjectClass * klass,