protected virtual void onBlackScreen(VideoEventArgs e) { if (frameBuffer[frameBuffer.Length - 1] == null) { return; } BlackScreen?.Invoke(this, e); for (int i = 0; i < e.frameBuffer.Length; i++) { e.frameBuffer[i]?.Dispose(); } }
protected virtual void onBlackScreen(BlackScreenEventArgs e) { if (frameBuffer[0] == null) { return; } BlackScreen?.Invoke(this, e); for (int i = 0; i < frameBuffer.Length; i++) { frameBuffer[i]?.Dispose(); frameBuffer[i] = null; } }