diff options
author | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | 2017-01-10 15:29:08 +0000 |
---|---|---|
committer | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | 2017-01-11 11:38:05 +0000 |
commit | a02f1e5c9b8f51f2240be9157b897128b2db0f81 (patch) | |
tree | f1f60cee3e7364eef732bf27c7650a172937ce6a | |
parent | a1e613dd89b7b8d07d12fdb2657e75aa9ece5450 (diff) |
omxaudioenc: set base class format instead of just source pad caps
-rw-r--r-- | omx/gstomxaudioenc.c | 2 |
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); |