omxaudiodec: Get PCM parameters from the out port, not the in port

This commit is contained in:
Sebastian Dröge 2014-07-02 09:22:28 +02:00
parent c27053c94e
commit f4961d0a72

View file

@ -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);