addStreamProxy新增force,支持强制重试拉流

This commit is contained in:
xia-chu
2026-03-17 19:30:08 +08:00
parent a13063c5e4
commit 4e170e9281
6 changed files with 43 additions and 22 deletions

View File

@@ -46,6 +46,10 @@ void TsPlayerImp::onPlayResult(const SockException &ex) {
}
void TsPlayerImp::onShutdown(const SockException &ex) {
if (!ex) {
// http-ts拉流,如果为eof正常断开,那么强制为异常状态
const_cast<SockException &>(ex).reset(Err_other, ex.what());
}
while (_demuxer) {
try {
// shared_from_this()可能抛异常 [AUTO-TRANSLATED:6af9bd3c]