summaryrefslogtreecommitdiffstats
path: root/audio/gstsbcutil.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-10-24 21:33:18 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-10-24 21:33:18 +0000
commitc522cb3f23849475348aa9c4ae6a70c83a1c2675 (patch)
treeb35ef1cfe7ba1c8188c19ce3b314eda055b4978a /audio/gstsbcutil.c
parentac568573b26dc0d7f1a92457296606205dc144b1 (diff)
Fix coding style issues
Diffstat (limited to 'audio/gstsbcutil.c')
-rw-r--r--audio/gstsbcutil.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/audio/gstsbcutil.c b/audio/gstsbcutil.c
index 706e7f54..783a2d92 100644
--- a/audio/gstsbcutil.c
+++ b/audio/gstsbcutil.c
@@ -21,12 +21,8 @@
*
*/
-
-/* common functions for gstreamer sbc related plugins */
-
-
-#include "gstsbcutil.h"
#include "ipc.h"
+#include "gstsbcutil.h"
/*
* Selects one rate from a list of possible rates
@@ -108,7 +104,7 @@ gint gst_sbc_select_subbands_from_range(const GValue *value)
* Selects one allocation mode from the ones on the list
* TODO - use a better approach
*/
-const gchar* gst_sbc_get_allocation_from_list(const GValue *value)
+const gchar *gst_sbc_get_allocation_from_list(const GValue *value)
{
guint size = gst_value_list_get_size(value);
return g_value_get_string(gst_value_list_get_value(value, size-1));
@@ -118,13 +114,13 @@ const gchar* gst_sbc_get_allocation_from_list(const GValue *value)
* Selects one mode from the ones on the list
* TODO - use a better aproach
*/
-const gchar* gst_sbc_get_mode_from_list(const GValue *value)
+const gchar *gst_sbc_get_mode_from_list(const GValue *value)
{
guint size = gst_value_list_get_size(value);
return g_value_get_string(gst_value_list_get_value(value, size-1));
}
-gint gst_sbc_get_allocation_mode_int(const gchar* allocation)
+gint gst_sbc_get_allocation_mode_int(const gchar *allocation)
{
if (g_ascii_strcasecmp(allocation, "loudness") == 0)
return CFG_ALLOCATION_LOUDNESS;
@@ -136,7 +132,7 @@ gint gst_sbc_get_allocation_mode_int(const gchar* allocation)
return -1;
}
-gint gst_sbc_get_mode_int(const gchar* mode)
+gint gst_sbc_get_mode_int(const gchar *mode)
{
if (g_ascii_strcasecmp(mode, "joint") == 0)
return CFG_MODE_JOINT_STEREO;
@@ -152,7 +148,7 @@ gint gst_sbc_get_mode_int(const gchar* mode)
return -1;
}
-const gchar* gst_sbc_get_mode_string(int joint)
+const gchar *gst_sbc_get_mode_string(int joint)
{
switch (joint) {
case CFG_MODE_MONO:
@@ -170,7 +166,7 @@ const gchar* gst_sbc_get_mode_string(int joint)
}
}
-const gchar* gst_sbc_get_allocation_string(int alloc)
+const gchar *gst_sbc_get_allocation_string(int alloc)
{
switch (alloc) {
case CFG_ALLOCATION_LOUDNESS: