1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-21 22:30:22 +00:00

vo_gpu: fix autoprobing message

This commit is contained in:
wm4 2017-09-22 05:37:54 +02:00
parent 2b5da4804c
commit baffe6bcbc

View File

@ -168,10 +168,12 @@ struct ra_ctx *ra_ctx_create(struct vo *vo, const char *context_type,
talloc_free(ctx);
}
vo->probing = old_probing;
// If we've reached this point, then none of the contexts matched the name
// requested, or the backend creation failed for all of them.
if (!vo->probing)
MP_ERR(vo, "Failed initializing any suitable GPU context!\n");
vo->probing = old_probing;
return NULL;
}