GNOME Bugzilla – Bug 525359
[alaw] [mulaw] Use gst_pad_alloc_buffer_and_set_caps to create encoded buffer
Last modified: 2008-04-01 11:00:59 UTC
Use gst_pad_alloc_buffer_and_set_caps to create encoded buffer.
Created attachment 108347 [details] [review] Use gst_pad_alloc_buffer_and_set_caps to create encoded buffer.
I guess it is fine, but it should be done similarly for the other three cases as well (alaw encode, mulaw decode and alaw decode).
Based on patch by: mersad <mersad at axis dot com> * gst/law/alaw-decode.c: (gst_alaw_dec_sink_setcaps), (gst_alaw_dec_chain), (gst_alaw_dec_change_state): * gst/law/alaw-decode.h: * gst/law/alaw-encode.c: (gst_alaw_enc_chain): * gst/law/mulaw-decode.c: (mulawdec_sink_setcaps), (gst_mulawdec_chain), (gst_mulawdec_change_state): * gst/law/mulaw-decode.h: * gst/law/mulaw-encode.c: (gst_mulawenc_chain): Make negotiation a bit modern. Use pad_alloc. Fixes #525359.