lame: 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:26 +0000 (16:20 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 1 Feb 2012 15:27:49 +0000 (16:27 +0100)
ext/lame/gstlamemp3enc.c

index 1c03cab3f7b1ceb31f93847b51a9f4aea0b7d48a..9b2737dc15cd05c2c6fa4e4bc40387afc7a03b0c 100644 (file)
@@ -363,7 +363,7 @@ gst_lamemp3enc_set_format (GstAudioEncoder * enc, GstAudioInfo * info)
       "rate", G_TYPE_INT, out_samplerate, NULL);
 
   /* and use these caps */
-  gst_pad_set_caps (GST_AUDIO_ENCODER_SRC_PAD (enc), othercaps);
+  gst_audio_encoder_set_output_format (GST_AUDIO_ENCODER (enc), othercaps);
   gst_caps_unref (othercaps);
 
   /* base class feedback: