mirror of
https://github.com/mpv-player/mpv
synced 2025-02-10 08:57:47 +00:00
vo_opengl: output slightly more debugging info on backend probing
This commit is contained in:
parent
a3f7b38cbc
commit
3170473003
@ -596,12 +596,14 @@ static MPGLContext *init_backend(struct vo *vo, const struct backend *backend,
|
||||
bool old_probing = vo->probing;
|
||||
vo->probing = probing; // hack; kill it once backends are separate
|
||||
if (ctx->driver) {
|
||||
MP_VERBOSE(vo, "Initializing OpenGL backend '%s'\n", ctx->driver->name);
|
||||
ctx->priv = talloc_zero_size(ctx, ctx->driver->priv_size);
|
||||
if (ctx->driver->init(ctx, vo_flags) < 0) {
|
||||
talloc_free(ctx);
|
||||
return NULL;
|
||||
}
|
||||
} else {
|
||||
MP_VERBOSE(vo, "Initializing OpenGL backend '%s'\n", backend->name);
|
||||
backend->init(ctx);
|
||||
if (!ctx->vo_init(vo)) {
|
||||
talloc_free(ctx);
|
||||
|
Loading…
Reference in New Issue
Block a user