amrwbenc: Use new audio encoder/decoder base class API for srcpad caps

This commit is contained in:
Sebastian Dröge 2012-02-01 16:27:22 +01:00
parent e321274933
commit 43da3e6f9e

View file

@ -249,7 +249,7 @@ gst_voamrwbenc_set_format (GstAudioEncoder * benc, GstAudioInfo * info)
"channels", G_TYPE_INT, amrwbenc->channels,
"rate", G_TYPE_INT, amrwbenc->rate, NULL);
gst_pad_set_caps (GST_AUDIO_ENCODER_SRC_PAD (amrwbenc), copy);
gst_audio_encoder_set_output_format (GST_AUDIO_ENCODER (amrwbenc), copy);
gst_caps_unref (copy);
/* report needs to base class: one frame at a time */