[vlc-devel] [PATCH 2/3] omxil: Set a higher priority

Rémi Denis-Courmont remi at remlab.net
Thu Sep 29 11:19:01 CEST 2011

On Thu, 29 Sep 2011 12:05:11 +0300, Martin Storsjö <martin at martin.st>
> For proper use, j-b has suggested that enabling IOMX could
> be a setting in the android app, changing this priority depending
> on the setting.

The priority is evaluated during the module bank/cache initialization, as
are the configuration items. So fundamentally, the configuration is not
loaded at that time. So you cannot change priority based on a configuration

Instead, you need to set a constant high priority and check the
configuration in the Open() callback. This unfortunately means the OMX
decoder will be probed every time. But that is a minor issue: most decoders
are already like that.

Rémi Denis-Courmont

More information about the vlc-devel mailing list