mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-25 01:54:17 +00:00
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.
This commit is contained in:
parent
c288c226c9
commit
3eb5b6313b
2 changed files with 7 additions and 9 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2004-05-10 Ronald Bultje <rbultje@ronald.bitfreak.net>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2004-05-11 Stephane Loeuillet <stephane.loeuillet@tiscali.fr>
|
2004-05-11 Stephane Loeuillet <stephane.loeuillet@tiscali.fr>
|
||||||
|
|
||||||
* gst/auparse/gstauparse.c:
|
* gst/auparse/gstauparse.c:
|
||||||
|
|
|
@ -159,7 +159,7 @@ gst_auparse_chain (GstPad * pad, GstData * _data)
|
||||||
gchar *data;
|
gchar *data;
|
||||||
glong size;
|
glong size;
|
||||||
GstCaps *tempcaps;
|
GstCaps *tempcaps;
|
||||||
gint law, depth, ieee;
|
gint law = 0, depth, ieee = 0;
|
||||||
|
|
||||||
g_return_if_fail (pad != NULL);
|
g_return_if_fail (pad != NULL);
|
||||||
g_return_if_fail (GST_IS_PAD (pad));
|
g_return_if_fail (GST_IS_PAD (pad));
|
||||||
|
@ -215,10 +215,6 @@ gst_auparse_chain (GstPad * pad, GstData * _data)
|
||||||
return;
|
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
|
GST_DEBUG
|
||||||
("offset %ld, size %ld, encoding %ld, frequency %ld, channels %ld",
|
("offset %ld, size %ld, encoding %ld, frequency %ld, channels %ld",
|
||||||
auparse->offset, auparse->size, auparse->encoding, auparse->frequency,
|
auparse->offset, auparse->size, auparse->encoding, auparse->frequency,
|
||||||
|
@ -240,19 +236,15 @@ Samples :
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 2: /* 8-bit linear PCM */
|
case 2: /* 8-bit linear PCM */
|
||||||
law = 0;
|
|
||||||
depth = 8;
|
depth = 8;
|
||||||
break;
|
break;
|
||||||
case 3: /* 16-bit linear PCM */
|
case 3: /* 16-bit linear PCM */
|
||||||
law = 0;
|
|
||||||
depth = 16;
|
depth = 16;
|
||||||
break;
|
break;
|
||||||
case 4: /* 24-bit linear PCM */
|
case 4: /* 24-bit linear PCM */
|
||||||
law = 0;
|
|
||||||
depth = 24;
|
depth = 24;
|
||||||
break;
|
break;
|
||||||
case 5: /* 32-bit linear PCM */
|
case 5: /* 32-bit linear PCM */
|
||||||
law = 0;
|
|
||||||
depth = 32;
|
depth = 32;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue