mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-06-03 05:49:31 +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
|
@ -54,7 +54,7 @@ impl ToGlib 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 {
|
||||
0 => RTPJitterBufferMode::None,
|
||||
1 => RTPJitterBufferMode::Slave,
|
||||
|
|
Loading…
Reference in a new issue