diff options
Diffstat (limited to 'video/hwdec.c')
-rw-r--r-- | video/hwdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/hwdec.c b/video/hwdec.c index 5d4073ad64..79714f60e0 100644 --- a/video/hwdec.c +++ b/video/hwdec.c @@ -40,7 +40,7 @@ struct mp_hwdec_ctx *hwdec_devices_get(struct mp_hwdec_devices *devs, struct mp_hwdec_ctx *res = NULL; pthread_mutex_lock(&devs->lock); for (int n = 0; n < devs->num_hwctxs; n++) { - if (devs->hwctxs[n]->type == type) { + if (type && devs->hwctxs[n]->type == type) { res = devs->hwctxs[n]; break; } |