[Gstreamer-openmax] [PATCH] add some utility macros to get/set core and port configs/params
Felipe Contreras
felipe.contreras at gmail.com
Sat Nov 14 05:19:18 PST 2009
On Wed, Nov 4, 2009 at 4:25 AM, Rob Clark <rob at ti.com> wrote:
> --- a/omx/gstomx_aacdec.c
> +++ b/omx/gstomx_aacdec.c
> @@ -144,13 +144,7 @@ settings_changed_cb (GOmxCore *core)
> {
> OMX_AUDIO_PARAM_PCMMODETYPE param;
>
> - memset (¶m, 0, sizeof (param));
> - param.nSize = sizeof (OMX_AUDIO_PARAM_PCMMODETYPE);
> - param.nVersion.s.nVersionMajor = 1;
> - param.nVersion.s.nVersionMinor = 1;
I've actually thought on changing this to:
OMX_AUDIO_PARAM_PCMMODETYPE param = {
.nSize = sizeof(param),
.nVersion = OMX_VERSION,
};
> - param.nPortIndex = 1;
> - OMX_GetParameter (omx_base->gomx->omx_handle, OMX_IndexParamAudioPcm, ¶m);
> + G_OMX_PORT_GET_PARAM (omx_base->out_port, OMX_IndexParamAudioPcm, ¶m);
I'd rather have an inline function instead.
--
Felipe Contreras
More information about the Gstreamer-openmax
mailing list