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

index c879edb8021fe54eff1b3b6a6fc2c6f8a17013b2..2101c143dbdba1111c580eba749e79e531e5ba32 100644 (file)
@@ -386,7 +386,7 @@ gst_two_lame_set_format (GstAudioEncoder * enc, GstAudioInfo * info)
       G_TYPE_INT, out_samplerate, NULL);
 
   /* and use these caps */
-  gst_pad_set_caps (GST_AUDIO_ENCODER_SRC_PAD (twolame), othercaps);
+  gst_audio_encoder_set_output_format (GST_AUDIO_ENCODER (twolame), othercaps);
   gst_caps_unref (othercaps);
 
   /* report needs to base class: