From f4961d0a7296aa04e25f21de84a400d71fcfab87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 2 Jul 2014 09:22:28 +0200 Subject: [PATCH] omxaudiodec: Get PCM parameters from the out port, not the in port --- omx/gstomxaudiodec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omx/gstomxaudiodec.c b/omx/gstomxaudiodec.c index 3dc5784c56..ce790131b7 100644 --- a/omx/gstomxaudiodec.c +++ b/omx/gstomxaudiodec.c @@ -341,7 +341,7 @@ gst_omx_audio_dec_loop (GstOMXAudioDec * self) g_assert (port_def.format.audio.eEncoding == OMX_AUDIO_CodingPCM); GST_OMX_INIT_STRUCT (&pcm_param); - pcm_param.nPortIndex = self->dec_in_port->index; + pcm_param.nPortIndex = self->dec_out_port->index; err = gst_omx_component_get_parameter (self->dec, OMX_IndexParamAudioPcm, &pcm_param);