Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

Commit aa4380a

Browse files
authored
Merge pull request #748 from ai0376/fix-issues
reset videoMixer crashed at sometimes
2 parents 428b0e5 + 73ab885 commit aa4380a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

source/agent/video/videoMixer/SoftVideoCompositor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,8 @@ SoftFrameGenerator::~SoftFrameGenerator()
310310
{
311311
ELOG_DEBUG_T("Exit");
312312

313+
m_jobTimer->stop();
314+
313315
if (m_srvWork)
314316
m_srvWork.reset();
315317

@@ -323,8 +325,6 @@ SoftFrameGenerator::~SoftFrameGenerator()
323325
m_thrGrp.reset();
324326
}
325327

326-
m_jobTimer->stop();
327-
328328
for (uint32_t i = 0; i < m_outputs.size(); i++) {
329329
if (m_outputs[i].size())
330330
ELOG_WARN_T("Outputs not empty!!!");

source/core/owt_base/MsdkFrameEncoder.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,13 @@ class StreamEncoder : public FrameSource, public JobTimerListener
7373

7474
~StreamEncoder()
7575
{
76+
m_keyFrameTimer->stop();
77+
7678
m_srvWork.reset();
7779
m_srv->stop();
7880
m_thread.reset();
7981
m_srv.reset();
8082

81-
m_keyFrameTimer->stop();
8283
removeVideoDestination(m_dest);
8384

8485
if (m_enc) {

0 commit comments

Comments
 (0)