You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Code related
protocol/rtsp/src/server_session.rs:
old:
if let Ok(data) = InterleavedBinaryData::new(&mut self.reader) {
match data {
Some(a) => {
if self.reader.len() < a.length as usize {
let data = self.io.lock().await.read().await?;
self.reader.extend_from_slice(&data[..]);
}
self.on_rtp_over_rtsp_message(a.channel_identifier, a.length as usize)
.await?;
}
None => {
self.on_rtsp_message().await?;
}
}
}
should be:
if let Ok(data) = InterleavedBinaryData::new(&mut self.reader) {
match data {
Some(a) => {
while self.reader.len() < a.length as usize {
let data = self.io.lock().await.read().await?;
self.reader.extend_from_slice(&data[..]);
}
self.on_rtp_over_rtsp_message(a.channel_identifier, a.length as usize)
.await?;
}
None => {
self.on_rtsp_message().await?;
}
}
}
``
The text was updated successfully, but these errors were encountered:
XIU version
For example: v0.13.0
Describe the bug
When running on ARM, RTSP stream push over tcp will cause:
To Reproduce
Run xiu on a less powerfull ARM cpu, use ffmpeg to push RTSP stream, eg:
Expected behavior
push works well.
Code related
protocol/rtsp/src/server_session.rs:
old:
should be:
``
The text was updated successfully, but these errors were encountered: