diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2002-02-02 13:58:48 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2002-02-02 13:58:48 +0000 |
commit | 716b8feb88dfa5c09fe27ae46c2fad4ba1623953 (patch) | |
tree | deb8aa493fc780e88d12d00870e2772ac43aa15e | |
parent | ddb176f2ed3e9ba8c8e79f837e97bc88f639a8cc (diff) |
Pretty pointless cleanup
Original commit message from CVS:
Pretty pointless cleanup
-rw-r--r-- | gst/wavparse/gstwavparse.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gst/wavparse/gstwavparse.c b/gst/wavparse/gstwavparse.c index d3e01f03..27ec497a 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", |