summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2017-01-10 15:29:08 +0000
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2017-01-11 11:38:05 +0000
commita02f1e5c9b8f51f2240be9157b897128b2db0f81 (patch)
treef1f60cee3e7364eef732bf27c7650a172937ce6a
parenta1e613dd89b7b8d07d12fdb2657e75aa9ece5450 (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);