mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-24 02:50:34 +00:00
Implement get_size()
This commit is contained in:
parent
99070d0a9f
commit
924b105147
1 changed files with 6 additions and 1 deletions
|
@ -56,7 +56,12 @@ impl FileSrc {
|
|||
}
|
||||
|
||||
fn get_size(&self) -> u64 {
|
||||
u64::MAX
|
||||
match self.file {
|
||||
None => return u64::MAX,
|
||||
Some(ref f) => {
|
||||
return f.metadata().unwrap().len();
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
fn start(&mut self) -> bool {
|
||||
|
|
Loading…
Reference in a new issue