gstreamer-rs/gstreamer-rtp/src/subclass
Sebastian Dröge 28fe70f479 rtpheaderextension: Don't pass a mutable output buffer reference to write()
The extension is only supposed to use it for potentially reading metas
from it, and `GstRTPBasePay` is currently passing the same buffer as the
one that owns the data so we currently end up with the possibility to
e.g. resize the buffer which would invalidate the data.

This change prevents at least the biggest problems, but would still
allow getting an immutable and mutable reference to the same data with a
bit of effort.

See also https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/issues/375

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1399>
2024-02-22 12:17:13 +02:00
..
mod.rs Remove dox feature and replace by docsrs configuration 2023-05-04 09:19:29 +03:00
rtp_base_depayload.rs Seal manual traits 2023-07-06 14:21:45 +03:00
rtp_base_payload.rs Seal manual traits 2023-07-06 14:21:45 +03:00
rtp_header_extension.rs rtpheaderextension: Don't pass a mutable output buffer reference to write() 2024-02-22 12:17:13 +02:00