mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-26 11:31:06 +00:00
Use std::path to directly refer to path::Path
This commit is contained in:
parent
fcb3ee9045
commit
5ae517d093
1 changed files with 2 additions and 1 deletions
|
@ -17,6 +17,7 @@ use std::marker::PhantomData;
|
||||||
use std::mem;
|
use std::mem;
|
||||||
use std::ops;
|
use std::ops;
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
|
use std::path;
|
||||||
use TestClock;
|
use TestClock;
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
|
@ -198,7 +199,7 @@ impl Harness {
|
||||||
unsafe { from_glib_full(ffi::gst_harness_create_buffer(self.0.as_ptr(), size)) }
|
unsafe { from_glib_full(ffi::gst_harness_create_buffer(self.0.as_ptr(), size)) }
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn dump_to_file<P: AsRef<std::path::Path>>(&mut self, filename: P) {
|
pub fn dump_to_file<P: AsRef<path::Path>>(&mut self, filename: P) {
|
||||||
let filename = filename.as_ref();
|
let filename = filename.as_ref();
|
||||||
unsafe {
|
unsafe {
|
||||||
ffi::gst_harness_dump_to_file(self.0.as_ptr(), filename.to_glib_none().0);
|
ffi::gst_harness_dump_to_file(self.0.as_ptr(), filename.to_glib_none().0);
|
||||||
|
|
Loading…
Reference in a new issue