mirror of
https://github.com/mpv-player/mpv
synced 2024-12-28 10:02:17 +00:00
vo_gpu_next: fix crash on uninit after startup failure
This commit is contained in:
parent
59fc8eecbc
commit
dfb5b0c55f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user