Files
zoneminder/src
Антон a63229e07b fix(decoder): retry hwaccel on reconnect instead of latching to software
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
2026-07-26 17:58:41 +03:00
..