diff options
author | wm4 <wm4@nowhere> | 2017-09-22 05:37:54 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-09-22 05:37:54 +0200 |
commit | baffe6bcbc3d606c357642667ad3da486cc075ee (patch) | |
tree | c41049c297082a9fea40db930f893a4906134daa /video | |
parent | 2b5da4804cbd54ee780d5abddd17d83fbd2cddec (diff) | |
download | mpv-baffe6bcbc3d606c357642667ad3da486cc075ee.tar.bz2 mpv-baffe6bcbc3d606c357642667ad3da486cc075ee.tar.xz |
vo_gpu: fix autoprobing message
Diffstat (limited to 'video')
-rw-r--r-- | video/out/gpu/context.c | 6 |
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; } |