fix: break recordin when parsing failed

This commit is contained in:
Xinrea
2025-10-24 22:29:27 +08:00
parent 1db0609961
commit 39a8d0d741

View File

@@ -106,6 +106,10 @@ impl HlsRecorder {
self.playlist.lock().await.close().await?; self.playlist.lock().await.close().await?;
return Err(e); return Err(e);
} }
RecorderError::M3u8ParseFailed { .. } => {
log::error!("[{}]M3u8 parse failed: {}", self.room_id, e);
return Err(e);
}
_ => { _ => {
// Other errors are not critical, just log it // Other errors are not critical, just log it
log::error!("[{}]Update entries error: {}", self.room_id, e); log::error!("[{}]Update entries error: {}", self.room_id, e);