forked from mirrors/gstreamer-rs
Regenerate with latest gir
This switches the RTP constant strings over to once_cell::Lazy
This commit is contained in:
parent
5f3d241b7d
commit
196a9891cb
19 changed files with 136 additions and 171 deletions
|
@ -1,2 +1,2 @@
|
||||||
Generated by gir (https://github.com/gtk-rs/gir @ 5836573)
|
Generated by gir (https://github.com/gtk-rs/gir @ 0a4cfc4)
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ c067e63)
|
from gir-files (https://github.com/gtk-rs/gir-files @ 4607c4a0)
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
Generated by gir (https://github.com/gtk-rs/gir @ 5836573)
|
Generated by gir (https://github.com/gtk-rs/gir @ 0a4cfc4)
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ 7e30d32)
|
from gir-files (https://github.com/gtk-rs/gir-files @ 4607c4a0)
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
Generated by gir (https://github.com/gtk-rs/gir @ 5836573)
|
Generated by gir (https://github.com/gtk-rs/gir @ 0a4cfc4)
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ c067e63)
|
from gir-files (https://github.com/gtk-rs/gir-files @ 4607c4a0)
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
Generated by gir (https://github.com/gtk-rs/gir @ 5836573)
|
Generated by gir (https://github.com/gtk-rs/gir @ 0a4cfc4)
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ c067e63)
|
from gir-files (https://github.com/gtk-rs/gir-files @ 4607c4a0)
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
Generated by gir (https://github.com/gtk-rs/gir @ 5836573)
|
Generated by gir (https://github.com/gtk-rs/gir @ 0a4cfc4)
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ c067e63)
|
from gir-files (https://github.com/gtk-rs/gir-files @ 4607c4a0)
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
Generated by gir (https://github.com/gtk-rs/gir @ 5836573)
|
Generated by gir (https://github.com/gtk-rs/gir @ 0a4cfc4)
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ c067e63)
|
from gir-files (https://github.com/gtk-rs/gir-files @ 4607c4a0)
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
Generated by gir (https://github.com/gtk-rs/gir @ 5836573)
|
Generated by gir (https://github.com/gtk-rs/gir @ 0a4cfc4)
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ c067e63)
|
from gir-files (https://github.com/gtk-rs/gir-files @ 4607c4a0)
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
Generated by gir (https://github.com/gtk-rs/gir @ 5836573)
|
Generated by gir (https://github.com/gtk-rs/gir @ 0a4cfc4)
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ c067e63)
|
from gir-files (https://github.com/gtk-rs/gir-files @ 4607c4a0)
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
Generated by gir (https://github.com/gtk-rs/gir @ 5836573)
|
Generated by gir (https://github.com/gtk-rs/gir @ 0a4cfc4)
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ c067e63)
|
from gir-files (https://github.com/gtk-rs/gir-files @ 4607c4a0)
|
||||||
|
|
|
@ -14,7 +14,7 @@ build = "build.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bitflags = "1.0"
|
bitflags = "1.0"
|
||||||
lazy_static = "1.0"
|
once_cell = "1.0"
|
||||||
glib-sys = { git = "https://github.com/gtk-rs/sys" }
|
glib-sys = { git = "https://github.com/gtk-rs/sys" }
|
||||||
gobject-sys = { git = "https://github.com/gtk-rs/sys" }
|
gobject-sys = { git = "https://github.com/gtk-rs/sys" }
|
||||||
gstreamer-sys = { git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys", features = ["v1_8"] }
|
gstreamer-sys = { git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys", features = ["v1_8"] }
|
||||||
|
|
|
@ -5,241 +5,207 @@
|
||||||
use gst_rtp_sys;
|
use gst_rtp_sys;
|
||||||
use std::ffi::CStr;
|
use std::ffi::CStr;
|
||||||
|
|
||||||
lazy_static! {
|
pub static RTP_HDREXT_BASE: once_cell::sync::Lazy<&'static str> =
|
||||||
pub static ref RTP_HDREXT_BASE: &'static str = unsafe {
|
once_cell::sync::Lazy::new(|| unsafe {
|
||||||
CStr::from_ptr(gst_rtp_sys::GST_RTP_HDREXT_BASE)
|
CStr::from_ptr(gst_rtp_sys::GST_RTP_HDREXT_BASE)
|
||||||
.to_str()
|
.to_str()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
};
|
});
|
||||||
}
|
pub static RTP_HDREXT_NTP_56: once_cell::sync::Lazy<&'static str> =
|
||||||
lazy_static! {
|
once_cell::sync::Lazy::new(|| unsafe {
|
||||||
pub static ref RTP_HDREXT_NTP_56: &'static str = unsafe {
|
|
||||||
CStr::from_ptr(gst_rtp_sys::GST_RTP_HDREXT_NTP_56)
|
CStr::from_ptr(gst_rtp_sys::GST_RTP_HDREXT_NTP_56)
|
||||||
.to_str()
|
.to_str()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
};
|
});
|
||||||
}
|
pub static RTP_HDREXT_NTP_64: once_cell::sync::Lazy<&'static str> =
|
||||||
lazy_static! {
|
once_cell::sync::Lazy::new(|| unsafe {
|
||||||
pub static ref RTP_HDREXT_NTP_64: &'static str = unsafe {
|
|
||||||
CStr::from_ptr(gst_rtp_sys::GST_RTP_HDREXT_NTP_64)
|
CStr::from_ptr(gst_rtp_sys::GST_RTP_HDREXT_NTP_64)
|
||||||
.to_str()
|
.to_str()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
};
|
});
|
||||||
}
|
pub static RTP_PAYLOAD_1016_STRING: once_cell::sync::Lazy<&'static str> =
|
||||||
lazy_static! {
|
once_cell::sync::Lazy::new(|| unsafe {
|
||||||
pub static ref RTP_PAYLOAD_1016_STRING: &'static str = unsafe {
|
|
||||||
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_1016_STRING)
|
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_1016_STRING)
|
||||||
.to_str()
|
.to_str()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
};
|
});
|
||||||
}
|
pub static RTP_PAYLOAD_CELLB_STRING: once_cell::sync::Lazy<&'static str> =
|
||||||
lazy_static! {
|
once_cell::sync::Lazy::new(|| unsafe {
|
||||||
pub static ref RTP_PAYLOAD_CELLB_STRING: &'static str = unsafe {
|
|
||||||
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_CELLB_STRING)
|
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_CELLB_STRING)
|
||||||
.to_str()
|
.to_str()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
};
|
});
|
||||||
}
|
pub static RTP_PAYLOAD_CN_STRING: once_cell::sync::Lazy<&'static str> =
|
||||||
lazy_static! {
|
once_cell::sync::Lazy::new(|| unsafe {
|
||||||
pub static ref RTP_PAYLOAD_CN_STRING: &'static str = unsafe {
|
|
||||||
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_CN_STRING)
|
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_CN_STRING)
|
||||||
.to_str()
|
.to_str()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
};
|
});
|
||||||
}
|
pub static RTP_PAYLOAD_DVI4_11025_STRING: once_cell::sync::Lazy<&'static str> =
|
||||||
lazy_static! {
|
once_cell::sync::Lazy::new(|| unsafe {
|
||||||
pub static ref RTP_PAYLOAD_DVI4_11025_STRING: &'static str = unsafe {
|
|
||||||
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_DVI4_11025_STRING)
|
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_DVI4_11025_STRING)
|
||||||
.to_str()
|
.to_str()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
};
|
});
|
||||||
}
|
pub static RTP_PAYLOAD_DVI4_16000_STRING: once_cell::sync::Lazy<&'static str> =
|
||||||
lazy_static! {
|
once_cell::sync::Lazy::new(|| unsafe {
|
||||||
pub static ref RTP_PAYLOAD_DVI4_16000_STRING: &'static str = unsafe {
|
|
||||||
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_DVI4_16000_STRING)
|
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_DVI4_16000_STRING)
|
||||||
.to_str()
|
.to_str()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
};
|
});
|
||||||
}
|
pub static RTP_PAYLOAD_DVI4_22050_STRING: once_cell::sync::Lazy<&'static str> =
|
||||||
lazy_static! {
|
once_cell::sync::Lazy::new(|| unsafe {
|
||||||
pub static ref RTP_PAYLOAD_DVI4_22050_STRING: &'static str = unsafe {
|
|
||||||
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_DVI4_22050_STRING)
|
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_DVI4_22050_STRING)
|
||||||
.to_str()
|
.to_str()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
};
|
});
|
||||||
}
|
pub static RTP_PAYLOAD_DVI4_8000_STRING: once_cell::sync::Lazy<&'static str> =
|
||||||
lazy_static! {
|
once_cell::sync::Lazy::new(|| unsafe {
|
||||||
pub static ref RTP_PAYLOAD_DVI4_8000_STRING: &'static str = unsafe {
|
|
||||||
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_DVI4_8000_STRING)
|
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_DVI4_8000_STRING)
|
||||||
.to_str()
|
.to_str()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
};
|
});
|
||||||
}
|
pub static RTP_PAYLOAD_DYNAMIC_STRING: once_cell::sync::Lazy<&'static str> =
|
||||||
lazy_static! {
|
once_cell::sync::Lazy::new(|| unsafe {
|
||||||
pub static ref RTP_PAYLOAD_DYNAMIC_STRING: &'static str = unsafe {
|
|
||||||
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_DYNAMIC_STRING)
|
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_DYNAMIC_STRING)
|
||||||
.to_str()
|
.to_str()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
};
|
});
|
||||||
}
|
pub static RTP_PAYLOAD_G721_STRING: once_cell::sync::Lazy<&'static str> =
|
||||||
lazy_static! {
|
once_cell::sync::Lazy::new(|| unsafe {
|
||||||
pub static ref RTP_PAYLOAD_G721_STRING: &'static str = unsafe {
|
|
||||||
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_G721_STRING)
|
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_G721_STRING)
|
||||||
.to_str()
|
.to_str()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
};
|
});
|
||||||
}
|
pub static RTP_PAYLOAD_G722_STRING: once_cell::sync::Lazy<&'static str> =
|
||||||
lazy_static! {
|
once_cell::sync::Lazy::new(|| unsafe {
|
||||||
pub static ref RTP_PAYLOAD_G722_STRING: &'static str = unsafe {
|
|
||||||
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_G722_STRING)
|
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_G722_STRING)
|
||||||
.to_str()
|
.to_str()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
};
|
});
|
||||||
}
|
pub static RTP_PAYLOAD_G723_53_STRING: once_cell::sync::Lazy<&'static str> =
|
||||||
lazy_static! {
|
once_cell::sync::Lazy::new(|| unsafe {
|
||||||
pub static ref RTP_PAYLOAD_G723_53_STRING: &'static str = unsafe {
|
|
||||||
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_G723_53_STRING)
|
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_G723_53_STRING)
|
||||||
.to_str()
|
.to_str()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
};
|
});
|
||||||
}
|
pub static RTP_PAYLOAD_G723_63_STRING: once_cell::sync::Lazy<&'static str> =
|
||||||
lazy_static! {
|
once_cell::sync::Lazy::new(|| unsafe {
|
||||||
pub static ref RTP_PAYLOAD_G723_63_STRING: &'static str = unsafe {
|
|
||||||
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_G723_63_STRING)
|
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_G723_63_STRING)
|
||||||
.to_str()
|
.to_str()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
};
|
});
|
||||||
}
|
pub static RTP_PAYLOAD_G723_STRING: once_cell::sync::Lazy<&'static str> =
|
||||||
lazy_static! {
|
once_cell::sync::Lazy::new(|| unsafe {
|
||||||
pub static ref RTP_PAYLOAD_G723_STRING: &'static str = unsafe {
|
|
||||||
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_G723_STRING)
|
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_G723_STRING)
|
||||||
.to_str()
|
.to_str()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
};
|
});
|
||||||
}
|
pub static RTP_PAYLOAD_G728_STRING: once_cell::sync::Lazy<&'static str> =
|
||||||
lazy_static! {
|
once_cell::sync::Lazy::new(|| unsafe {
|
||||||
pub static ref RTP_PAYLOAD_G728_STRING: &'static str = unsafe {
|
|
||||||
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_G728_STRING)
|
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_G728_STRING)
|
||||||
.to_str()
|
.to_str()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
};
|
});
|
||||||
}
|
pub static RTP_PAYLOAD_G729_STRING: once_cell::sync::Lazy<&'static str> =
|
||||||
lazy_static! {
|
once_cell::sync::Lazy::new(|| unsafe {
|
||||||
pub static ref RTP_PAYLOAD_G729_STRING: &'static str = unsafe {
|
|
||||||
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_G729_STRING)
|
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_G729_STRING)
|
||||||
.to_str()
|
.to_str()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
};
|
});
|
||||||
}
|
pub static RTP_PAYLOAD_GSM_STRING: once_cell::sync::Lazy<&'static str> =
|
||||||
lazy_static! {
|
once_cell::sync::Lazy::new(|| unsafe {
|
||||||
pub static ref RTP_PAYLOAD_GSM_STRING: &'static str = unsafe {
|
|
||||||
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_GSM_STRING)
|
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_GSM_STRING)
|
||||||
.to_str()
|
.to_str()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
};
|
});
|
||||||
}
|
pub static RTP_PAYLOAD_H261_STRING: once_cell::sync::Lazy<&'static str> =
|
||||||
lazy_static! {
|
once_cell::sync::Lazy::new(|| unsafe {
|
||||||
pub static ref RTP_PAYLOAD_H261_STRING: &'static str = unsafe {
|
|
||||||
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_H261_STRING)
|
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_H261_STRING)
|
||||||
.to_str()
|
.to_str()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
};
|
});
|
||||||
}
|
pub static RTP_PAYLOAD_H263_STRING: once_cell::sync::Lazy<&'static str> =
|
||||||
lazy_static! {
|
once_cell::sync::Lazy::new(|| unsafe {
|
||||||
pub static ref RTP_PAYLOAD_H263_STRING: &'static str = unsafe {
|
|
||||||
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_H263_STRING)
|
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_H263_STRING)
|
||||||
.to_str()
|
.to_str()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
};
|
});
|
||||||
}
|
pub static RTP_PAYLOAD_JPEG_STRING: once_cell::sync::Lazy<&'static str> =
|
||||||
lazy_static! {
|
once_cell::sync::Lazy::new(|| unsafe {
|
||||||
pub static ref RTP_PAYLOAD_JPEG_STRING: &'static str = unsafe {
|
|
||||||
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_JPEG_STRING)
|
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_JPEG_STRING)
|
||||||
.to_str()
|
.to_str()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
};
|
});
|
||||||
}
|
pub static RTP_PAYLOAD_L16_MONO_STRING: once_cell::sync::Lazy<&'static str> =
|
||||||
lazy_static! {
|
once_cell::sync::Lazy::new(|| unsafe {
|
||||||
pub static ref RTP_PAYLOAD_L16_MONO_STRING: &'static str = unsafe {
|
|
||||||
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_L16_MONO_STRING)
|
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_L16_MONO_STRING)
|
||||||
.to_str()
|
.to_str()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
};
|
});
|
||||||
}
|
pub static RTP_PAYLOAD_L16_STEREO_STRING: once_cell::sync::Lazy<&'static str> =
|
||||||
lazy_static! {
|
once_cell::sync::Lazy::new(|| unsafe {
|
||||||
pub static ref RTP_PAYLOAD_L16_STEREO_STRING: &'static str = unsafe {
|
|
||||||
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_L16_STEREO_STRING)
|
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_L16_STEREO_STRING)
|
||||||
.to_str()
|
.to_str()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
};
|
});
|
||||||
}
|
pub static RTP_PAYLOAD_LPC_STRING: once_cell::sync::Lazy<&'static str> =
|
||||||
lazy_static! {
|
once_cell::sync::Lazy::new(|| unsafe {
|
||||||
pub static ref RTP_PAYLOAD_LPC_STRING: &'static str = unsafe {
|
|
||||||
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_LPC_STRING)
|
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_LPC_STRING)
|
||||||
.to_str()
|
.to_str()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
};
|
});
|
||||||
}
|
pub static RTP_PAYLOAD_MP2T_STRING: once_cell::sync::Lazy<&'static str> =
|
||||||
lazy_static! {
|
once_cell::sync::Lazy::new(|| unsafe {
|
||||||
pub static ref RTP_PAYLOAD_MP2T_STRING: &'static str = unsafe {
|
|
||||||
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_MP2T_STRING)
|
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_MP2T_STRING)
|
||||||
.to_str()
|
.to_str()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
};
|
});
|
||||||
}
|
pub static RTP_PAYLOAD_MPA_STRING: once_cell::sync::Lazy<&'static str> =
|
||||||
lazy_static! {
|
once_cell::sync::Lazy::new(|| unsafe {
|
||||||
pub static ref RTP_PAYLOAD_MPA_STRING: &'static str = unsafe {
|
|
||||||
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_MPA_STRING)
|
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_MPA_STRING)
|
||||||
.to_str()
|
.to_str()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
};
|
});
|
||||||
}
|
pub static RTP_PAYLOAD_MPV_STRING: once_cell::sync::Lazy<&'static str> =
|
||||||
lazy_static! {
|
once_cell::sync::Lazy::new(|| unsafe {
|
||||||
pub static ref RTP_PAYLOAD_MPV_STRING: &'static str = unsafe {
|
|
||||||
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_MPV_STRING)
|
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_MPV_STRING)
|
||||||
.to_str()
|
.to_str()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
};
|
});
|
||||||
}
|
pub static RTP_PAYLOAD_NV_STRING: once_cell::sync::Lazy<&'static str> =
|
||||||
lazy_static! {
|
once_cell::sync::Lazy::new(|| unsafe {
|
||||||
pub static ref RTP_PAYLOAD_NV_STRING: &'static str = unsafe {
|
|
||||||
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_NV_STRING)
|
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_NV_STRING)
|
||||||
.to_str()
|
.to_str()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
};
|
});
|
||||||
}
|
pub static RTP_PAYLOAD_PCMA_STRING: once_cell::sync::Lazy<&'static str> =
|
||||||
lazy_static! {
|
once_cell::sync::Lazy::new(|| unsafe {
|
||||||
pub static ref RTP_PAYLOAD_PCMA_STRING: &'static str = unsafe {
|
|
||||||
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_PCMA_STRING)
|
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_PCMA_STRING)
|
||||||
.to_str()
|
.to_str()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
};
|
});
|
||||||
}
|
pub static RTP_PAYLOAD_PCMU_STRING: once_cell::sync::Lazy<&'static str> =
|
||||||
lazy_static! {
|
once_cell::sync::Lazy::new(|| unsafe {
|
||||||
pub static ref RTP_PAYLOAD_PCMU_STRING: &'static str = unsafe {
|
|
||||||
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_PCMU_STRING)
|
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_PCMU_STRING)
|
||||||
.to_str()
|
.to_str()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
};
|
});
|
||||||
}
|
pub static RTP_PAYLOAD_QCELP_STRING: once_cell::sync::Lazy<&'static str> =
|
||||||
lazy_static! {
|
once_cell::sync::Lazy::new(|| unsafe {
|
||||||
pub static ref RTP_PAYLOAD_QCELP_STRING: &'static str = unsafe {
|
|
||||||
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_QCELP_STRING)
|
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_QCELP_STRING)
|
||||||
.to_str()
|
.to_str()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
};
|
});
|
||||||
}
|
pub static RTP_PAYLOAD_TS41_STRING: once_cell::sync::Lazy<&'static str> =
|
||||||
lazy_static! {
|
once_cell::sync::Lazy::new(|| unsafe {
|
||||||
pub static ref RTP_PAYLOAD_TS41_STRING: &'static str = unsafe {
|
|
||||||
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_TS41_STRING)
|
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_TS41_STRING)
|
||||||
.to_str()
|
.to_str()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
};
|
});
|
||||||
}
|
pub static RTP_PAYLOAD_TS48_STRING: once_cell::sync::Lazy<&'static str> =
|
||||||
lazy_static! {
|
once_cell::sync::Lazy::new(|| unsafe {
|
||||||
pub static ref RTP_PAYLOAD_TS48_STRING: &'static str = unsafe {
|
|
||||||
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_TS48_STRING)
|
CStr::from_ptr(gst_rtp_sys::GST_RTP_PAYLOAD_TS48_STRING)
|
||||||
.to_str()
|
.to_str()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
};
|
});
|
||||||
}
|
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
Generated by gir (https://github.com/gtk-rs/gir @ 5836573)
|
Generated by gir (https://github.com/gtk-rs/gir @ 0a4cfc4)
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ c067e63)
|
from gir-files (https://github.com/gtk-rs/gir-files @ 4607c4a0)
|
||||||
|
|
|
@ -8,8 +8,7 @@
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate bitflags;
|
extern crate bitflags;
|
||||||
#[macro_use]
|
extern crate once_cell;
|
||||||
extern crate lazy_static;
|
|
||||||
|
|
||||||
#[allow(unused_imports)]
|
#[allow(unused_imports)]
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
Generated by gir (https://github.com/gtk-rs/gir @ 5836573)
|
Generated by gir (https://github.com/gtk-rs/gir @ 0a4cfc4)
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ c067e63)
|
from gir-files (https://github.com/gtk-rs/gir-files @ 4607c4a0)
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
Generated by gir (https://github.com/gtk-rs/gir @ 5836573)
|
Generated by gir (https://github.com/gtk-rs/gir @ 0a4cfc4)
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ c067e63)
|
from gir-files (https://github.com/gtk-rs/gir-files @ 4607c4a0)
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
Generated by gir (https://github.com/gtk-rs/gir @ 5836573)
|
Generated by gir (https://github.com/gtk-rs/gir @ 0a4cfc4)
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ c067e63)
|
from gir-files (https://github.com/gtk-rs/gir-files @ 4607c4a0)
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
Generated by gir (https://github.com/gtk-rs/gir @ 5836573)
|
Generated by gir (https://github.com/gtk-rs/gir @ 0a4cfc4)
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ c067e63)
|
from gir-files (https://github.com/gtk-rs/gir-files @ 4607c4a0)
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
Generated by gir (https://github.com/gtk-rs/gir @ 5836573)
|
Generated by gir (https://github.com/gtk-rs/gir @ 0a4cfc4)
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ c067e63)
|
from gir-files (https://github.com/gtk-rs/gir-files @ 4607c4a0)
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
Generated by gir (https://github.com/gtk-rs/gir @ 5836573)
|
Generated by gir (https://github.com/gtk-rs/gir @ 0a4cfc4)
|
||||||
from gir-files (https://github.com/gtk-rs/gir-files @ c067e63)
|
from gir-files (https://github.com/gtk-rs/gir-files @ 4607c4a0)
|
||||||
|
|
Loading…
Reference in a new issue