summaryrefslogtreecommitdiffstats
path: root/video/out/gpu/context.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/gpu/context.c')
-rw-r--r--video/out/gpu/context.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/video/out/gpu/context.c b/video/out/gpu/context.c
index ba710ff59e..c5721c73b4 100644
--- a/video/out/gpu/context.c
+++ b/video/out/gpu/context.c
@@ -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.
- MP_ERR(vo, "Failed initializing any suitable GPU context!\n");
- vo->probing = old_probing;
+ if (!vo->probing)
+ MP_ERR(vo, "Failed initializing any suitable GPU context!\n");
return NULL;
}