Pretty pointless cleanup

Original commit message from CVS:
Pretty pointless cleanup
This commit is contained in:
Wim Taymans 2002-02-02 13:58:48 +00:00
parent ddb176f2ed
commit 716b8feb88

View file

@ -251,14 +251,15 @@ gst_wavparse_chain (GstPad *pad, GstBuffer *buf)
/* if we've got something, deal with it */ /* if we've got something, deal with it */
if (fmt != NULL) { if (fmt != NULL) {
GstCaps *caps;
/* we can gather format information now */ /* we can gather format information now */
format = (GstWavParseFormat *)((guchar *) GST_BUFFER_DATA (buf) + fmt->offset); format = (GstWavParseFormat *)((guchar *) GST_BUFFER_DATA (buf) + fmt->offset);
/* set the caps on the src pad */ /* set the caps on the src pad */
gst_pad_try_set_caps (wavparse->srcpad, caps = GST_CAPS_NEW (
GST_CAPS_NEW ( "parsewav_src",
"wavparse_src",
"audio/raw", "audio/raw",
"format", GST_PROPS_STRING ("int"), "format", GST_PROPS_STRING ("int"),
"law", GST_PROPS_INT (0), //FIXME "law", GST_PROPS_INT (0), //FIXME
@ -268,7 +269,9 @@ gst_wavparse_chain (GstPad *pad, GstBuffer *buf)
"depth", GST_PROPS_INT (format->wBitsPerSample), "depth", GST_PROPS_INT (format->wBitsPerSample),
"rate", GST_PROPS_INT (format->dwSamplesPerSec), "rate", GST_PROPS_INT (format->dwSamplesPerSec),
"channels", GST_PROPS_INT (format->wChannels) "channels", GST_PROPS_INT (format->wChannels)
)); );
gst_pad_try_set_caps (wavparse->srcpad, caps);
wavparse->bps = format->wBlockAlign; wavparse->bps = format->wBlockAlign;
GST_DEBUG (0, "frequency %d, channels %d\n", GST_DEBUG (0, "frequency %d, channels %d\n",