diff options
author | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2004-05-11 00:07:57 +0000 |
---|---|---|
committer | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2004-05-11 00:07:57 +0000 |
commit | 3eb5b6313bbc9906507b66bf70178ee15780fb86 (patch) | |
tree | e8b8c7a43c1c669f41ad3bf8ecc9886eef2b0c0d /gst/auparse | |
parent | c288c226c914277aaff4cddebb460e5b00a1abbf (diff) |
gst/auparse/gstauparse.c: Fix for some uninitialized variables in previous patch, also makes it work. Fixes #142286 w...
Original commit message from CVS:
* gst/auparse/gstauparse.c: (gst_auparse_chain):
Fix for some uninitialized variables in previous patch, also
makes it work. Fixes #142286 while we're at it.
Diffstat (limited to 'gst/auparse')
-rw-r--r-- | gst/auparse/gstauparse.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/gst/auparse/gstauparse.c b/gst/auparse/gstauparse.c index 602a3ade..c8473e83 100644 --- a/gst/auparse/gstauparse.c +++ b/gst/auparse/gstauparse.c @@ -159,7 +159,7 @@ gst_auparse_chain (GstPad * pad, GstData * _data) gchar *data; glong size; GstCaps *tempcaps; - gint law, depth, ieee; + gint law = 0, depth, ieee = 0; g_return_if_fail (pad != NULL); g_return_if_fail (GST_IS_PAD (pad)); @@ -215,10 +215,6 @@ gst_auparse_chain (GstPad * pad, GstData * _data) return; } - g_print - ("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, @@ -240,19 +236,15 @@ Samples : break; case 2: /* 8-bit linear PCM */ - law = 0; depth = 8; break; case 3: /* 16-bit linear PCM */ - law = 0; depth = 16; break; case 4: /* 24-bit linear PCM */ - law = 0; depth = 24; break; case 5: /* 32-bit linear PCM */ - law = 0; depth = 32; break; |