mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-28 14:01:27 +00:00
hwcontext_opencl: Reset internal command queue on device_uninit
device_uninit can be called twice if device_init fails.
This commit is contained in:
parent
8bbf2dacbf
commit
f4e319d8a9
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user