Commit f4e319d8 authored by Mark Thompson's avatar Mark Thompson

hwcontext_opencl: Reset internal command queue on device_uninit

device_uninit can be called twice if device_init fails.
parent 8bbf2dac
......@@ -883,6 +883,7 @@ static void opencl_device_uninit(AVHWDeviceContext *hwdev)
av_log(hwdev, AV_LOG_ERROR, "Failed to release internal "
"command queue reference: %d.\n", cle);
}
priv->command_queue = NULL;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment