Commit bfc0837a authored by Luca Barbato's avatar Luca Barbato Committed by Luca Barbato

Remove get_frame_count and needs_more_frames

They shouldn't be needed anymore.
parent e4363d06
......@@ -629,21 +629,9 @@ impl<T: Pixel> Context<T> {
&self.inner.first_pass_data
}
// TODO: the methods below should go away
pub fn get_frame_count(&self) -> u64 {
self.inner.get_frame_count()
}
pub fn set_limit(&mut self, limit: u64) {
self.inner.set_limit(limit);
}
pub fn needs_more_frames(&self, frame_count: u64) -> bool {
self.inner.needs_more_frames(frame_count)
}
}
......
......@@ -40,9 +40,6 @@ fn read_frame<T: Pixel, D: Decoder>(ctx: &mut Context<T>, decoder: &mut D, video
let _ = ctx.send_frame(Some(Arc::new(frame)));
}
_ => {
let frames_to_be_coded = ctx.get_frame_count();
// This is a hack, instead when EOF is reached simply "close" the encoder to input (flag)
ctx.set_limit(frames_to_be_coded);
ctx.flush();
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment