video: fix visibility for VideoVBIEncoder::try_new

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1323>
This commit is contained in:
François Laignel 2023-10-11 17:53:43 +02:00
parent 547cfb44e2
commit 4c8d16d09e

View file

@ -47,7 +47,10 @@ impl VideoAFDDescriptionMode {
impl VideoVBIEncoder {
#[doc(alias = "gst_video_vbi_encoder_new")]
fn try_new(format: VideoFormat, pixel_width: u32) -> Result<VideoVBIEncoder, VideoVBIError> {
pub fn try_new(
format: VideoFormat,
pixel_width: u32,
) -> Result<VideoVBIEncoder, VideoVBIError> {
skip_assert_initialized!();
let res: Option<VideoVBIEncoderInner> = unsafe {
from_glib_full(ffi::gst_video_vbi_encoder_new(