diff options
author | rcombs <rcombs@rcombs.me> | 2022-10-14 08:33:47 -0500 |
---|---|---|
committer | Niklas Haas <github-daiK1o@haasn.dev> | 2022-10-14 15:37:49 +0200 |
commit | dfb5b0c55fa442ca53208f6b38ad3885acf945f8 (patch) | |
tree | b8b40d02f36cf1cda28a919913d085e83fa16bbf /video/out | |
parent | 59fc8eecbc08d22368451b31fcf799aec557ab0d (diff) | |
download | mpv-dfb5b0c55fa442ca53208f6b38ad3885acf945f8.tar.bz2 mpv-dfb5b0c55fa442ca53208f6b38ad3885acf945f8.tar.xz |
vo_gpu_next: fix crash on uninit after startup failure
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/vo_gpu_next.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/vo_gpu_next.c b/video/out/vo_gpu_next.c index 22950e0b6e..72b9d3eec6 100644 --- a/video/out/vo_gpu_next.c +++ b/video/out/vo_gpu_next.c @@ -1352,7 +1352,7 @@ static void uninit(struct vo *vo) pthread_mutex_destroy(&p->dr_lock); char *cache_file = get_cache_file(p); - if (cache_file) { + if (cache_file && p->rr) { FILE *cache = fopen(cache_file, "wb"); if (cache) { size_t size = pl_renderer_save(p->rr, NULL); |