From 716b8feb88dfa5c09fe27ae46c2fad4ba1623953 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sat, 2 Feb 2002 13:58:48 +0000 Subject: [PATCH] Pretty pointless cleanup Original commit message from CVS: Pretty pointless cleanup --- gst/wavparse/gstwavparse.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/gst/wavparse/gstwavparse.c b/gst/wavparse/gstwavparse.c index d3e01f0333..27ec497a5c 100644 --- a/gst/wavparse/gstwavparse.c +++ b/gst/wavparse/gstwavparse.c @@ -251,14 +251,15 @@ gst_wavparse_chain (GstPad *pad, GstBuffer *buf) /* if we've got something, deal with it */ if (fmt != NULL) { + GstCaps *caps; + /* we can gather format information now */ format = (GstWavParseFormat *)((guchar *) GST_BUFFER_DATA (buf) + fmt->offset); /* set the caps on the src pad */ - gst_pad_try_set_caps (wavparse->srcpad, - GST_CAPS_NEW ( - "wavparse_src", + caps = GST_CAPS_NEW ( + "parsewav_src", "audio/raw", "format", GST_PROPS_STRING ("int"), "law", GST_PROPS_INT (0), //FIXME @@ -268,7 +269,9 @@ gst_wavparse_chain (GstPad *pad, GstBuffer *buf) "depth", GST_PROPS_INT (format->wBitsPerSample), "rate", GST_PROPS_INT (format->dwSamplesPerSec), "channels", GST_PROPS_INT (format->wChannels) - )); + ); + + gst_pad_try_set_caps (wavparse->srcpad, caps); wavparse->bps = format->wBlockAlign; GST_DEBUG (0, "frequency %d, channels %d\n",