[0.11] gst-plugins-ugly: twolame: Use new audio encoder/ decoder base class API for srcpad caps

Sebastian Dröge slomo at kemper.freedesktop.org
Wed Feb 1 07:27:54 PST 2012


Module: gst-plugins-ugly
Branch: 0.11
Commit: 2af62366da28a97b3f5c1bc80d9c4e7cbfc94973
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-ugly/commit/?id=2af62366da28a97b3f5c1bc80d9c4e7cbfc94973

Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date:   Wed Feb  1 16:20:46 2012 +0100

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

---

 ext/twolame/gsttwolamemp2enc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ext/twolame/gsttwolamemp2enc.c b/ext/twolame/gsttwolamemp2enc.c
index c879edb..2101c14 100644
--- a/ext/twolame/gsttwolamemp2enc.c
+++ b/ext/twolame/gsttwolamemp2enc.c
@@ -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:



More information about the gstreamer-commits mailing list