summaryrefslogtreecommitdiffstats
path: root/mpv_talloc.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-12-02 02:32:41 +0100
committerwm4 <wm4@nowhere>2017-12-02 02:32:41 +0100
commit3c07db034582438a55972e9c610cab683577ac56 (patch)
treeef1c50e6965afc4cac9dbe7cf70ca7132dbee346 /mpv_talloc.h
parentb279cfb1dd75c757346d4b5515e758f44c93cb92 (diff)
downloadmpv-3c07db034582438a55972e9c610cab683577ac56.tar.bz2
mpv-3c07db034582438a55972e9c610cab683577ac56.tar.xz
vd_lavc: sort -copy hwdec modes to end of list
Otherwise, if e.g. "nvdec" didn't work, but "nvdec-copy" did, it would never try "vdpau", which is actually the next non-copy mode on the autprobe list. It's really expected that it selects "vdpau". Fix this by sorting the -copy modes to the end of the final hwdec list. But we still don't want preferred -copy modes like "nvdec-copy" to be sorted after fragile non-preferred modes like "cuda", and --hwdec=auto should prefer "nvdec-copy" over it, so make sure the copying mode does not get precedence over preferred vs. non-preferred mode. Also simplify the existing auto_pos sorting condition, and fix the fallback sort order (although that doesn't matter too much).
Diffstat (limited to 'mpv_talloc.h')
0 files changed, 0 insertions, 0 deletions