1009补丁合入,出现播放音频时候队列满,线程被卡住的问题
authorluozheng <1732036298@qq.com>
Tue, 15 Oct 2024 03:04:46 +0000 (11:04 +0800)
committerluozheng <1732036298@qq.com>
Tue, 15 Oct 2024 03:04:46 +0000 (11:04 +0800)
code/sdk/middleware/services/media/foundation/sample/wrapper/player_sample_wrapper.cpp

index 01d4d04..b2ee671 100755 (executable)
@@ -685,6 +685,7 @@ static void PlayerStreamExit(SampleParam *sampleParam)
     sampleParam->taskAlive.store(false);\r
     if (!sampleParam->testSample.isStop) {\r
         MediaThreadSetDetach(sampleParam->playTask, true);\r
+        sampleParam->playTask = nullptr;\r
     }\r
 }\r
 \r