From a02f1e5c9b8f51f2240be9157b897128b2db0f81 Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Tue, 10 Jan 2017 15:29:08 +0000 Subject: omxaudioenc: set base class format instead of just source pad caps --- omx/gstomxaudioenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3