diff options
Diffstat (limited to 'video/out/d3d11/hwdec_d3d11va.c')
-rw-r--r-- | video/out/d3d11/hwdec_d3d11va.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/video/out/d3d11/hwdec_d3d11va.c b/video/out/d3d11/hwdec_d3d11va.c index 1be79a3748..d83fdc57af 100644 --- a/video/out/d3d11/hwdec_d3d11va.c +++ b/video/out/d3d11/hwdec_d3d11va.c @@ -66,8 +66,7 @@ struct priv { static void uninit(struct ra_hwdec *hw) { struct priv_owner *p = hw->priv; - if (p->hwctx.ctx) - hwdec_devices_remove(hw->devs, &p->hwctx); + hwdec_devices_remove(hw->devs, &p->hwctx); SAFE_RELEASE(p->device); SAFE_RELEASE(p->device1); } @@ -106,9 +105,7 @@ static int init(struct ra_hwdec *hw) ID3D10Multithread_Release(multithread); p->hwctx = (struct mp_hwdec_ctx){ - .type = HWDEC_D3D11VA, .driver_name = hw->driver->name, - .ctx = p->device, .av_device_ref = d3d11_wrap_device_ref(p->device), }; hwdec_devices_add(hw->devs, &p->hwctx); |