]> git.sesse.net Git - vlc/commit
omxil: Set the module priority to 0 for iomx
authorMartin Storsjö <martin@martin.st>
Wed, 25 Jan 2012 09:22:17 +0000 (11:22 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 25 Jan 2012 16:39:07 +0000 (17:39 +0100)
commitd64ca8acaa6f2bd9db57b4b25446656a30bcba2f
treec0feb39750a93d3375c902bcffd820161068f8e5
parent8d2f07b0b9716aac58d0c294371cb8147589ba19
omxil: Set the module priority to 0 for iomx

The iomx module is only enabled when the user has requested it
(via settings). Currently, when the iomx module has priority 80,
it is always preferred over avcodec.

For other platforms, where one would only enable omxil if one
explicitly wants to use it, this is ok, but for android, we
ship the iomx module but allow users to enable it at runtime
if they want to.

If it isn't enabled, the priorities are currently overridden by
adding "--codec avcodec,all" to the command line, but this makes
avcodec have precedence over other decoder modules that otherwise
would have higher priority (e.g. a52).

By setting the priority to 0 for the iomx version of this
module, we can more easily enable it only when asked for,
by adding "--codec iomx,all", without affecting the relative
priorities of all other codec modules.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/codec/omxil/omxil.c