diff options
author | wm4 <wm4@nowhere> | 2017-12-02 02:32:41 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-12-02 02:32:41 +0100 |
commit | 3c07db034582438a55972e9c610cab683577ac56 (patch) | |
tree | ef1c50e6965afc4cac9dbe7cf70ca7132dbee346 /osdep/terminal.h | |
parent | b279cfb1dd75c757346d4b5515e758f44c93cb92 (diff) | |
download | mpv-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 'osdep/terminal.h')
0 files changed, 0 insertions, 0 deletions