summaryrefslogtreecommitdiffstats
path: root/src/pulsemixer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pulsemixer.c')
-rw-r--r--src/pulsemixer.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/pulsemixer.c b/src/pulsemixer.c
index 3352c1d..5c36e66 100644
--- a/src/pulsemixer.c
+++ b/src/pulsemixer.c
@@ -2,17 +2,17 @@
/***
This file is part of gst-pulse.
-
+
gst-pulse is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; either version 2.1 of the
License, or (at your option) any later version.
-
+
gst-pulse is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
-
+
You should have received a copy of the GNU Lesser General Public
License along with gst-pulse; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
@@ -50,13 +50,13 @@ GST_BOILERPLATE_FULL(GstPulseMixer, gst_pulsemixer, GstElement, GST_TYPE_ELEMENT
static gboolean gst_pulsemixer_interface_supported(GstImplementsInterface* iface, GType interface_type) {
GstPulseMixer *this = GST_PULSEMIXER(iface);
-
+
if (interface_type == GST_TYPE_MIXER && this->mixer)
return TRUE;
if (interface_type == GST_TYPE_PROPERTY_PROBE && this->probe)
return TRUE;
-
+
return FALSE;
}
@@ -80,7 +80,7 @@ static void gst_pulsemixer_init_interfaces(GType type) {
NULL,
NULL,
};
-
+
g_type_add_interface_static(type, GST_TYPE_IMPLEMENTS_INTERFACE, &implements_iface_info);
g_type_add_interface_static(type, GST_TYPE_MIXER, &mixer_iface_info);
g_type_add_interface_static(type, GST_TYPE_PROPERTY_PROBE, &probe_iface_info);
@@ -101,9 +101,9 @@ static void gst_pulsemixer_base_init(gpointer g_class) {
static void gst_pulsemixer_class_init(GstPulseMixerClass *g_class) {
GstElementClass *gstelement_class = GST_ELEMENT_CLASS(g_class);
GObjectClass *gobject_class = G_OBJECT_CLASS(g_class);
-
+
gstelement_class->change_state = GST_DEBUG_FUNCPTR(gst_pulsemixer_change_state);
-
+
gobject_class->finalize = GST_DEBUG_FUNCPTR(gst_pulsemixer_finalize);
gobject_class->get_property = GST_DEBUG_FUNCPTR(gst_pulsemixer_get_property);
gobject_class->set_property = GST_DEBUG_FUNCPTR(gst_pulsemixer_set_property);
@@ -147,7 +147,7 @@ static void gst_pulsemixer_finalize(GObject *object) {
gst_pulseprobe_free(this->probe);
this->probe = NULL;
}
-
+
G_OBJECT_CLASS(parent_class)->finalize(object);
}
@@ -156,7 +156,7 @@ static void gst_pulsemixer_set_property(
guint prop_id,
const GValue * value,
GParamSpec * pspec) {
-
+
GstPulseMixer *this = GST_PULSEMIXER(object);
switch (prop_id) {
@@ -171,7 +171,7 @@ static void gst_pulsemixer_set_property(
if (this->probe)
gst_pulseprobe_set_server(this->probe, this->device);
-
+
break;
default:
@@ -185,7 +185,7 @@ static void gst_pulsemixer_get_property(
guint prop_id,
GValue * value,
GParamSpec * pspec) {
-
+
GstPulseMixer *this = GST_PULSEMIXER(object);
switch(prop_id) {
@@ -206,9 +206,9 @@ static void gst_pulsemixer_get_property(
g_free(t);
} else
g_value_set_string(value, NULL);
-
+
break;
-
+
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
break;
@@ -217,30 +217,30 @@ static void gst_pulsemixer_get_property(
static GstStateChangeReturn gst_pulsemixer_change_state(GstElement *element, GstStateChange transition) {
GstPulseMixer *this = GST_PULSEMIXER(element);
-
+
switch (transition) {
case GST_STATE_CHANGE_NULL_TO_READY:
if (!this->mixer)
this->mixer = gst_pulsemixer_ctrl_new(this->server, this->device, GST_PULSEMIXER_UNKNOWN);
-
+
break;
-
+
case GST_STATE_CHANGE_READY_TO_NULL:
if (this->mixer) {
gst_pulsemixer_ctrl_free(this->mixer);
this->mixer = NULL;
}
-
+
break;
-
+
default:
;
}
if (GST_ELEMENT_CLASS(parent_class)->change_state)
return GST_ELEMENT_CLASS(parent_class)->change_state(element, transition);
-
+
return GST_STATE_CHANGE_SUCCESS;
}