vtdec: Register a hardware-only vtdec_hw on OSX and give it a higher rank
authorSebastian Dröge <sebastian@centricular.com>
Sat, 7 Mar 2015 09:28:35 +0000 (10:28 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Sat, 7 Mar 2015 09:31:26 +0000 (10:31 +0100)
commit160df421ea3042aa1f60889c1e4632283137f219
tree2de0600a9344f8cd72bb9238be7d11423c97159e
parent2d5d2eabef8023fadb355ba286b0ff89eede8c83
vtdec: Register a hardware-only vtdec_hw on OSX and give it a higher rank

while having the default vtdec at secondary rank. This allows decodebin/playbin
to prefer the hardware based decoders, and if that fails to initialize because
hardware resources are busy to fall back to e.g. the libav based h264 decoder
instead of the software based vtdec (which is slower), and only fall back to
the software based vtdec if there is no higher ranked decoder available.
sys/applemedia/plugin.m
sys/applemedia/vtdec.c
sys/applemedia/vtdec.h