*: use Into<Rational> instead of Rational for setters

This commit is contained in:
meh
2015-08-25 15:53:46 +02:00
parent 2baf1deaab
commit 62acd3ef02
3 changed files with 8 additions and 8 deletions

View File

@ -25,9 +25,9 @@ impl<'a> StreamMut<'a> {
}
impl<'a> StreamMut<'a> {
pub fn set_frame_rate(&mut self, value: Rational) {
pub fn set_frame_rate<R: Into<Rational>>(&mut self, value: R) {
unsafe {
av_stream_set_r_frame_rate(self.as_mut_ptr(), value.into());
av_stream_set_r_frame_rate(self.as_mut_ptr(), value.into().into());
}
}
}