From 43da3e6f9ee5f87614d088b616c04e34cfcb53f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 1 Feb 2012 16:27:22 +0100 Subject: amrwbenc: Use new audio encoder/decoder base class API for srcpad caps --- ext/voamrwbenc/gstvoamrwbenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/voamrwbenc') diff --git a/ext/voamrwbenc/gstvoamrwbenc.c b/ext/voamrwbenc/gstvoamrwbenc.c index 304ef1d3e..2c2e253cb 100644 --- a/ext/voamrwbenc/gstvoamrwbenc.c +++ b/ext/voamrwbenc/gstvoamrwbenc.c @@ -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 */ -- cgit v1.2.1