mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-08-03 08:46:44 -04:00
use_hwaccel was set to false on the first failure and never restored, so the decision survived every later PrimeCapture(). A camera that came up while the GPU was still resetting, or on a host where zmc won the race against the graphics driver, stayed on software decoding until someone restarted the process - at roughly one extra CPU core per stream. Close() already tears down hw_device_ctx and is the entry point of every reconnect, so reset the flag there and let the next open try again. A GPU that is genuinely gone simply fails again and now says so. refs #4984