Use software decoder by default

This commit is contained in:
2026-04-04 20:19:54 +11:00
parent 3a21026790
commit e134ebdf15
24 changed files with 693 additions and 215 deletions

View File

@@ -258,7 +258,15 @@ void CRtspPlayer::stop()
// Set flags BEFORE stopping decoder so TCP rx thread stops calling decode()
m_bPlaying = FALSE;
m_bPaused = FALSE;
CVideoPlayer::StopVideoDecoder(); // Stop the video decoder
CVideoPlayer::StopVideoDecoder(); // Stop the video decoder + uninit (free VRAM)
// Close RTSP connection and shut down RX threads.
// Without this, stopped cameras keep TCP/UDP threads running,
// sockets open, and receiving network data — wasting CPU and
// network resources. With 100 cameras and only 5 running,
// 95 idle threads would consume CPU for no purpose.
// Start() → Setup() → open() will reconnect when needed.
m_rtsp.rtsp_close();
}
BOOL CRtspPlayer::pause()