summaryrefslogtreecommitdiffstats
path: root/gst/auparse
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2004-03-15 19:32:27 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2004-03-15 19:32:27 +0000
commit6cc1c73d2baa95c46edc04f57cbe9ed690dc2f21 (patch)
tree82b5546809a42a56a7bc18bacf8ed6e209ad006e /gst/auparse
parentd07ec45fa47fbd0e36224e11bcd8ba2faee1a78c (diff)
don't mix tabs and spaces
Original commit message from CVS: don't mix tabs and spaces
Diffstat (limited to 'gst/auparse')
-rw-r--r--gst/auparse/gstauparse.c65
1 files changed, 33 insertions, 32 deletions
diff --git a/gst/auparse/gstauparse.c b/gst/auparse/gstauparse.c
index d7ffe68f..c11bb4b3 100644
--- a/gst/auparse/gstauparse.c
+++ b/gst/auparse/gstauparse.c
@@ -50,8 +50,8 @@ static GstStaticPadTemplate gst_auparse_src_template =
GST_PAD_SRC,
GST_PAD_ALWAYS,
GST_STATIC_CAPS (GST_AUDIO_INT_PAD_TEMPLATE_CAPS "; "
- "audio/x-alaw, "
- "rate = (int) [ 8000, 48000 ], " "channels = (int) [ 1, 2 ]")
+ "audio/x-alaw, "
+ "rate = (int) [ 8000, 48000 ], " "channels = (int) [ 1, 2 ]")
);
/* AuParse signals and args */
@@ -94,9 +94,10 @@ gst_auparse_get_type (void)
0,
(GInstanceInitFunc) gst_auparse_init,
};
+
auparse_type =
- g_type_register_static (GST_TYPE_ELEMENT, "GstAuParse", &auparse_info,
- 0);
+ g_type_register_static (GST_TYPE_ELEMENT, "GstAuParse", &auparse_info,
+ 0);
}
return auparse_type;
}
@@ -213,46 +214,46 @@ gst_auparse_chain (GstPad * pad, GstData * _data)
}
g_print
- ("offset %ld, size %ld, encoding %ld, frequency %ld, channels %ld\n",
- auparse->offset, auparse->size, auparse->encoding, auparse->frequency,
- auparse->channels);
+ ("offset %ld, size %ld, encoding %ld, frequency %ld, channels %ld\n",
+ auparse->offset, auparse->size, auparse->encoding, auparse->frequency,
+ auparse->channels);
GST_DEBUG
- ("offset %ld, size %ld, encoding %ld, frequency %ld, channels %ld",
- auparse->offset, auparse->size, auparse->encoding, auparse->frequency,
- auparse->channels);
+ ("offset %ld, size %ld, encoding %ld, frequency %ld, channels %ld",
+ auparse->offset, auparse->size, auparse->encoding, auparse->frequency,
+ auparse->channels);
switch (auparse->encoding) {
case 1:
- law = 1;
- depth = 8;
- sign = FALSE;
- break;
+ law = 1;
+ depth = 8;
+ sign = FALSE;
+ break;
case 2:
- law = 0;
- depth = 8;
- sign = FALSE;
- break;
+ law = 0;
+ depth = 8;
+ sign = FALSE;
+ break;
case 3:
- law = 0;
- depth = 16;
- sign = TRUE;
- break;
+ law = 0;
+ depth = 16;
+ sign = TRUE;
+ break;
default:
- g_warning ("help!, dont know how to deal with this format yet\n");
- return;
+ g_warning ("help!, dont know how to deal with this format yet\n");
+ return;
}
if (law) {
tempcaps = gst_caps_new_simple ("audio/x-alaw",
- "rate", G_TYPE_INT, auparse->frequency,
- "channels", G_TYPE_INT, auparse->channels, NULL);
+ "rate", G_TYPE_INT, auparse->frequency,
+ "channels", G_TYPE_INT, auparse->channels, NULL);
} else {
tempcaps = gst_caps_new_simple ("audio/x-raw-int",
- "endianness", G_TYPE_INT, G_BIG_ENDIAN,
- "rate", G_TYPE_INT, auparse->frequency,
- "channels", G_TYPE_INT, auparse->channels,
- "depth", G_TYPE_INT, depth,
- "width", G_TYPE_INT, depth, "signed", G_TYPE_BOOLEAN, sign, NULL);
+ "endianness", G_TYPE_INT, G_BIG_ENDIAN,
+ "rate", G_TYPE_INT, auparse->frequency,
+ "channels", G_TYPE_INT, auparse->channels,
+ "depth", G_TYPE_INT, depth,
+ "width", G_TYPE_INT, depth, "signed", G_TYPE_BOOLEAN, sign, NULL);
}
if (!gst_pad_set_explicit_caps (auparse->srcpad, tempcaps)) {
@@ -279,7 +280,7 @@ static gboolean
plugin_init (GstPlugin * plugin)
{
if (!gst_element_register (plugin, "auparse", GST_RANK_SECONDARY,
- GST_TYPE_AUPARSE)) {
+ GST_TYPE_AUPARSE)) {
return FALSE;
}