From baffe6bcbc3d606c357642667ad3da486cc075ee Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 22 Sep 2017 05:37:54 +0200 Subject: vo_gpu: fix autoprobing message --- video/out/gpu/context.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'video/out') 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; } -- cgit v1.2.3