summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2017-01-10 15:29:08 +0000
committerSebastian Dröge <sebastian@centricular.com>2017-01-25 14:28:08 +0200
commite8e158fde42cae9370bccf3d307091057b15c1d2 (patch)
treed5db0d4e56c6d535122b0fdcba7093d69f3fd561
parent601eb4f98033c9f25f48871d823ae407af448005 (diff)
omxaudioenc: set base class format instead of just source pad caps
-rw-r--r--omx/gstomxaudioenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/omx/gstomxaudioenc.c b/omx/gstomxaudioenc.c
index 3b098d8..e92c21e 100644
--- a/omx/gstomxaudioenc.c
+++ b/omx/gstomxaudioenc.c
@@ -334,7 +334,7 @@ gst_omx_audio_enc_loop (GstOMXAudioEnc * self)
GST_DEBUG_OBJECT (self, "Setting output caps: %" GST_PTR_FORMAT, caps);
- if (!gst_pad_set_caps (GST_AUDIO_ENCODER_SRC_PAD (self), caps)) {
+ if (!gst_audio_encoder_set_output_format (GST_AUDIO_ENCODER (self), caps)) {
gst_caps_unref (caps);
if (buf)
gst_omx_port_release_buffer (self->enc_out_port, buf);