amrwbenc: Use new audio encoder/decoder base class API for srcpad caps
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 1 Feb 2012 15:27:22 +0000 (16:27 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 1 Feb 2012 15:27:51 +0000 (16:27 +0100)
ext/voamrwbenc/gstvoamrwbenc.c

index 304ef1d..2c2e253 100644 (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 */