gst-player: Implement Default for Player

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1231>
This commit is contained in:
Bilal Elmoussaoui 2023-03-09 13:20:29 +01:00 committed by GStreamer Marge Bot
parent e108a908dc
commit 5c156737a4

View file

@ -98,6 +98,15 @@ impl Player {
} }
} }
impl Default for Player {
fn default() -> Self {
Self::new(
None::<crate::PlayerVideoRenderer>,
None::<crate::PlayerSignalDispatcher>,
)
}
}
unsafe extern "C" fn duration_changed_trampoline< unsafe extern "C" fn duration_changed_trampoline<
F: Fn(&Player, Option<gst::ClockTime>) + Send + 'static, F: Fn(&Player, Option<gst::ClockTime>) + Send + 'static,
>( >(