diff options
author | Niklas Haas <git@haasn.dev> | 2022-02-27 21:07:58 +0100 |
---|---|---|
committer | Niklas Haas <github-daiK1o@haasn.dev> | 2022-03-03 13:06:05 +0100 |
commit | d4fc44e711aee61b34edb654587d6380abe39b05 (patch) | |
tree | 0e159674a73cf831882018476684592efe76a0d8 /video/out/vo_gpu.c | |
parent | bb434a60ed801723c8e3becae019352935539e50 (diff) | |
download | mpv-d4fc44e711aee61b34edb654587d6380abe39b05.tar.bz2 mpv-d4fc44e711aee61b34edb654587d6380abe39b05.tar.xz |
vo_gpu: move hwdec loading code to common helper
So I can reuse it in vo_gpu_next without having to reinvent the wheel.
In theory, a lot of the stuff could be made more private inside the
hwdec code itself, but for the time being I don't care about refactoring
this code, merely sharing it.
Diffstat (limited to 'video/out/vo_gpu.c')
-rw-r--r-- | video/out/vo_gpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/vo_gpu.c b/video/out/vo_gpu.c index 817d750c76..1f471815f1 100644 --- a/video/out/vo_gpu.c +++ b/video/out/vo_gpu.c @@ -312,7 +312,7 @@ static int preinit(struct vo *vo) vo->hwdec_devs = hwdec_devices_create(); hwdec_devices_set_loader(vo->hwdec_devs, call_request_hwdec_api, vo); - gl_video_load_hwdecs(p->renderer, vo->hwdec_devs, false); + gl_video_init_hwdecs(p->renderer, vo->hwdec_devs, false); return 0; |