Use software decoder by default
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user