diff options
author | Philip Langdale <philipl@overt.org> | 2018-10-28 09:25:30 -0700 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2018-10-31 09:20:06 +0100 |
commit | 84d6638907b488a1724ec33978773ef8a586dfc0 (patch) | |
tree | 77300732de8f5142f4b5baf54ad16f8119fd12e5 /input/ipc-unix.c | |
parent | 4056a9a420a3d404d44994606a942b3a7ec1766c (diff) | |
download | mpv-84d6638907b488a1724ec33978773ef8a586dfc0.tar.bz2 mpv-84d6638907b488a1724ec33978773ef8a586dfc0.tar.xz |
vo_gpu: hwdec_cuda: Clean up init() error handling
Currently, the error paths in init() are a bit confusing, and we can
end up trying to pop the current context when there is no context,
which leads to distracting error messages.
I also added an explicit path to return early if the GPU backend is
not OpenGL or Vulkan. It's pointless to do any other cuda init
after that point. (Of course, someone could write more interops.)
Fixes #6256
Diffstat (limited to 'input/ipc-unix.c')
0 files changed, 0 insertions, 0 deletions