mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-23 10:30:40 +00:00
jitterbuffer: Remove un-needed mut qualifiers
This commit is contained in:
parent
84a2d8b513
commit
737bd459e4
1 changed files with 2 additions and 2 deletions
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue