forked from mirrors/gstreamer-rs
gst-player: Implement Default for Player
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1231>
This commit is contained in:
parent
e108a908dc
commit
5c156737a4
1 changed files with 9 additions and 0 deletions
|
@ -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,
|
||||||
>(
|
>(
|
||||||
|
|
Loading…
Reference in a new issue