Commit 737bd459 authored by Philippe Normand's avatar Philippe Normand 🥑

jitterbuffer: Remove un-needed mut qualifiers

parent 84a2d8b5
Pipeline #157349 failed with stages
in 16 minutes and 56 seconds
......@@ -156,7 +156,7 @@ struct GapPacket {
impl GapPacket {
fn new(buffer: gst::Buffer) -> Self {
let mut rtp_buffer = RTPBuffer::from_buffer_readable(&buffer).unwrap();
let rtp_buffer = RTPBuffer::from_buffer_readable(&buffer).unwrap();
let seq = rtp_buffer.get_seq();
let pt = rtp_buffer.get_payload_type();
drop(rtp_buffer);
......@@ -390,7 +390,7 @@ impl SinkHandler {
};
let (seq, rtptime, pt) = {
let mut rtp_buffer =
let rtp_buffer =
RTPBuffer::from_buffer_readable(&buffer).map_err(|_| gst::FlowError::Error)?;
(
rtp_buffer.get_seq(),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment