summaryrefslogtreecommitdiffstats
path: root/ext/pulse/pulsesink.c
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2008-06-10 08:59:17 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2008-06-10 08:59:17 +0000
commit74e9eb72c51388143a5972c543065965905334cc (patch)
treea366ece14a74348feeb199f0174e1a66102d38b3 /ext/pulse/pulsesink.c
parent7390985262efef9c51d3f68dc132291e823f1f47 (diff)
ext/pulse/: Some smaller cleanup. Use G_PARAM_STATIC_STRINGS, gst_element_class_set_details_simple() and fix coding s...
Original commit message from CVS: * ext/pulse/pulsemixer.c: (gst_pulsemixer_base_init), (gst_pulsemixer_class_init): * ext/pulse/pulsesink.c: (gst_pulsesink_base_init), (gst_pulsesink_class_init), (gst_pulsesink_prepare): * ext/pulse/pulsesrc.c: (gst_pulsesrc_interface_supported), (gst_pulsesrc_base_init), (gst_pulsesrc_class_init), (gst_pulsesrc_prepare): Some smaller cleanup. Use G_PARAM_STATIC_STRINGS, gst_element_class_set_details_simple() and fix coding style a bit more.
Diffstat (limited to 'ext/pulse/pulsesink.c')
-rw-r--r--ext/pulse/pulsesink.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/ext/pulse/pulsesink.c b/ext/pulse/pulsesink.c
index 1b7ab69d..432c39be 100644
--- a/ext/pulse/pulsesink.c
+++ b/ext/pulse/pulsesink.c
@@ -142,15 +142,11 @@ gst_pulsesink_base_init (gpointer g_class)
"rate = (int) [ 1, MAX], " "channels = (int) [ 1, 16 ]")
);
- static const GstElementDetails details =
- GST_ELEMENT_DETAILS ("PulseAudio Audio Sink",
- "Sink/Audio",
- "Plays audio to a PulseAudio server",
- "Lennart Poettering");
-
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
- gst_element_class_set_details (element_class, &details);
+ gst_element_class_set_details_simple (element_class,
+ "PulseAudio Audio Sink",
+ "Sink/Audio", "Plays audio to a PulseAudio server", "Lennart Poettering");
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&pad_template));
}
@@ -186,10 +182,12 @@ gst_pulsesink_class_init (gpointer g_class, gpointer class_data)
g_object_class_install_property (gobject_class,
PROP_SERVER,
g_param_spec_string ("server", "Server",
- "The PulseAudio server to connect to", NULL, G_PARAM_READWRITE));
+ "The PulseAudio server to connect to", NULL,
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_DEVICE,
g_param_spec_string ("device", "Sink",
- "The PulseAudio sink device to connect to", NULL, G_PARAM_READWRITE));
+ "The PulseAudio sink device to connect to", NULL,
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
}
static void