aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2017-11-25 15:34:43 +0000
committerMark Thompson <sw@jkqxz.net>2017-11-25 15:44:31 +0000
commitf4e319d8a94697f21802e2682085599a93a39a57 (patch)
tree899bf121bddd4ce12d73f9655e88b6823b0818d4
parent8bbf2dacbfb4ead1535dea411035994f507f517d (diff)
downloadffmpeg-f4e319d8a94697f21802e2682085599a93a39a57.tar.gz
hwcontext_opencl: Reset internal command queue on device_uninit
device_uninit can be called twice if device_init fails.
-rw-r--r--libavutil/hwcontext_opencl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/hwcontext_opencl.c b/libavutil/hwcontext_opencl.c
index 8754d73939..b00c1b6409 100644
--- a/libavutil/hwcontext_opencl.c
+++ b/libavutil/hwcontext_opencl.c
@@ -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;
}
}