mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-11 11:45:30 +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 {
|
impl GapPacket {
|
||||||
fn new(buffer: gst::Buffer) -> Self {
|
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 seq = rtp_buffer.get_seq();
|
||||||
let pt = rtp_buffer.get_payload_type();
|
let pt = rtp_buffer.get_payload_type();
|
||||||
drop(rtp_buffer);
|
drop(rtp_buffer);
|
||||||
|
@ -390,7 +390,7 @@ impl SinkHandler {
|
||||||
};
|
};
|
||||||
|
|
||||||
let (seq, rtptime, pt) = {
|
let (seq, rtptime, pt) = {
|
||||||
let mut rtp_buffer =
|
let rtp_buffer =
|
||||||
RTPBuffer::from_buffer_readable(&buffer).map_err(|_| gst::FlowError::Error)?;
|
RTPBuffer::from_buffer_readable(&buffer).map_err(|_| gst::FlowError::Error)?;
|
||||||
(
|
(
|
||||||
rtp_buffer.get_seq(),
|
rtp_buffer.get_seq(),
|
||||||
|
|
Loading…
Reference in a new issue