MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / slotStop

Method slotStop

Plugins/Player/BackendPlayer.cpp:251–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249}
250
251void CBackendPlayer::slotStop()
252{
253 qDebug(log) << Q_FUNC_INFO;
254 switch (m_pParameters->GetType()) {
255 case CParameterPlayer::TYPE::Camera:
256 if(m_pCamera)
257 m_pCamera->stop();
258 m_CaptureSession.setVideoSink(nullptr);
259 break;
260 case CParameterPlayer::TYPE::Url:
261 m_Player.stop();
262 m_Player.setVideoSink(nullptr);
263 m_Player.setVideoOutput(nullptr);
264 break;
265 default:
266 break;
267 }
268
269 if(m_pCamera) {
270 delete m_pCamera;
271 m_pCamera = nullptr;
272 }
273#if HAVE_QT6_RECORD
274 slotRecord(false);
275#endif
276}
277
278#if HAVE_QT6_RECORD
279void CBackendPlayer::slotRecord(bool bRecord)

Callers

nothing calls this directly

Calls 2

stopMethod · 0.80
GetTypeMethod · 0.45

Tested by

no test coverage detected