mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-19 07:35:46 +00:00
jitterbuffer: mark from_glib fn as unsafe
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/446>
This commit is contained in:
parent
89b72b53d1
commit
09561686b8
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ impl ToGlib for RTPJitterBufferMode {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl FromGlib<ffi::RTPJitterBufferMode> for RTPJitterBufferMode {
|
impl FromGlib<ffi::RTPJitterBufferMode> for RTPJitterBufferMode {
|
||||||
fn from_glib(value: ffi::RTPJitterBufferMode) -> Self {
|
unsafe fn from_glib(value: ffi::RTPJitterBufferMode) -> Self {
|
||||||
match value {
|
match value {
|
||||||
0 => RTPJitterBufferMode::None,
|
0 => RTPJitterBufferMode::None,
|
||||||
1 => RTPJitterBufferMode::Slave,
|
1 => RTPJitterBufferMode::Slave,
|
||||||
|
|
Loading…
Reference in a new issue