mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-05-28 21:28:41 +00:00
b38f6cc731
This is now automatically implemented.
23 lines
761 B
Rust
23 lines
761 B
Rust
// Copyright (C) 2020 Sebastian Dröge <sebastian@centricular.com>
|
|
// Copyright (C) 2020 Seungha Yang <seungha@centricular.com>
|
|
//
|
|
// This Source Code Form is subject to the terms of the Mozilla Public License, v2.0.
|
|
// If a copy of the MPL was not distributed with this file, You can obtain one at
|
|
// <https://mozilla.org/MPL/2.0/>.
|
|
//
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
use gst::glib;
|
|
|
|
mod imp;
|
|
|
|
glib::wrapper! {
|
|
pub struct VideoFallbackSource(ObjectSubclass<imp::VideoFallbackSource>) @extends gst::Bin, gst::Element, gst::Object;
|
|
}
|
|
|
|
impl VideoFallbackSource {
|
|
pub fn new(uri: Option<&str>, min_latency: gst::ClockTime) -> VideoFallbackSource {
|
|
glib::Object::new(&[("uri", &uri), ("min-latency", &min_latency.nseconds())]).unwrap()
|
|
}
|
|
}
|