diff options
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/opengl/hwdec.c | 2 | ||||
-rw-r--r-- | video/out/opengl/hwdec.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/video/out/opengl/hwdec.c b/video/out/opengl/hwdec.c index 02aa0c2cd2..9c3bec1a0f 100644 --- a/video/out/opengl/hwdec.c +++ b/video/out/opengl/hwdec.c @@ -79,6 +79,8 @@ static struct gl_hwdec *load_hwdec_driver(struct mp_log *log, GL *gl, mp_verbose(log, "Loading failed.\n"); return NULL; } + if (hwdec->hwctx && !hwdec->hwctx->driver_name) + hwdec->hwctx->driver_name = hwdec->driver->name; return hwdec; } diff --git a/video/out/opengl/hwdec.h b/video/out/opengl/hwdec.h index 5126d7f0fa..a9d524a1d7 100644 --- a/video/out/opengl/hwdec.h +++ b/video/out/opengl/hwdec.h @@ -27,7 +27,7 @@ struct gl_hwdec { }; struct gl_hwdec_driver { - // Name of the interop backend. This is used for logging only. + // Name of the interop backend. This is used for informational purposes only. const char *name; // Used to explicitly request a specific API. enum hwdec_type api; |