[0.11] gst-plugins-bad: amrwbenc: Use new audio encoder/ decoder base class API for srcpad caps
Sebastian Dröge
slomo at kemper.freedesktop.org
Wed Feb 1 07:27:56 PST 2012
Module: gst-plugins-bad
Branch: 0.11
Commit: 43da3e6f9ee5f87614d088b616c04e34cfcb53f6
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=43da3e6f9ee5f87614d088b616c04e34cfcb53f6
Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date: Wed Feb 1 16:27:22 2012 +0100
amrwbenc: Use new audio encoder/decoder base class API for srcpad caps
---
ext/voamrwbenc/gstvoamrwbenc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ext/voamrwbenc/gstvoamrwbenc.c b/ext/voamrwbenc/gstvoamrwbenc.c
index 304ef1d..2c2e253 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 */
More information about the gstreamer-commits
mailing list