Implement get_size()

This commit is contained in:
Sebastian Dröge 2016-05-13 19:06:06 +03:00
parent 99070d0a9f
commit 924b105147

View file

@ -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 {