mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-12-27 18:40:30 +00:00
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<
|
||||
F: Fn(&Player, Option<gst::ClockTime>) + Send + 'static,
|
||||
>(
|
||||
|
|
Loading…
Reference in a new issue