Fix media player title count result
parent
90729e2bd4
commit
fb5c9d28d6
|
|
@ -235,7 +235,7 @@ impl MediaPlayer {
|
||||||
pub fn title_count(&self) -> Option<i32> {
|
pub fn title_count(&self) -> Option<i32> {
|
||||||
unsafe{
|
unsafe{
|
||||||
let t = sys::libvlc_media_player_get_title_count(self.ptr);
|
let t = sys::libvlc_media_player_get_title_count(self.ptr);
|
||||||
if t == -1 { Some(t) } else { None }
|
if t == -1 { None } else { Some(t) }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue