summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--video/out/gpu/hwdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/gpu/hwdec.c b/video/out/gpu/hwdec.c
index 6fe6a69f4f..a2b92ad549 100644
--- a/video/out/gpu/hwdec.c
+++ b/video/out/gpu/hwdec.c
@@ -281,7 +281,7 @@ void ra_hwdec_ctx_init(struct ra_hwdec_ctx *ctx, struct mp_hwdec_devices *devs,
if (strcmp(type, drv->name) == 0) {
load_add_hwdec(ctx, devs, drv, false);
break;
- } else if (strcmp(type, drv->legacy_name) == 0) {
+ } else if (drv->legacy_name && strcmp(type, drv->legacy_name) == 0) {
MP_WARN(ctx, "gpu-hwdec-interop was selected with the legacy name '%s'. "
"Please change it to '%s' in your config file or command line.\n",
drv->legacy_name, drv->name);