diff options
author | Sebastian Dröge <slomo@circular-chaos.org> | 2008-06-10 08:59:17 +0000 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2008-06-10 08:59:17 +0000 |
commit | 74e9eb72c51388143a5972c543065965905334cc (patch) | |
tree | a366ece14a74348feeb199f0174e1a66102d38b3 /ext/pulse/pulsemixer.c | |
parent | 7390985262efef9c51d3f68dc132291e823f1f47 (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/pulsemixer.c')
-rw-r--r-- | ext/pulse/pulsemixer.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ext/pulse/pulsemixer.c b/ext/pulse/pulsemixer.c index 25e8631e..edd3bb25 100644 --- a/ext/pulse/pulsemixer.c +++ b/ext/pulse/pulsemixer.c @@ -123,14 +123,11 @@ gst_pulsemixer_init_interfaces (GType type) static void gst_pulsemixer_base_init (gpointer g_class) { - - static const GstElementDetails details = - GST_ELEMENT_DETAILS ("PulseAudio Mixer", + gst_element_class_set_details_simple (GST_ELEMENT_CLASS (g_class), + "PulseAudio Mixer", "Generic/Audio", "Control sound input and output levels for PulseAudio", "Lennart Poettering"); - - gst_element_class_set_details (GST_ELEMENT_CLASS (g_class), &details); } static void @@ -150,17 +147,20 @@ gst_pulsemixer_class_init (GstPulseMixerClass * g_class) 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/Source", - "The PulseAudio sink or source to control", NULL, G_PARAM_READWRITE)); + "The PulseAudio sink or source to control", NULL, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_DEVICE_NAME, g_param_spec_string ("device-name", "Device name", - "Human-readable name of the sound device", NULL, G_PARAM_READABLE)); + "Human-readable name of the sound device", NULL, + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); } static void |