From: Kostya Shishkov Date: Wed, 28 May 2025 16:17:39 +0000 (+0200) Subject: transcoder: remove unused trait method X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=deb2b94354673487007b317fdfaf9b1ba4658970;p=nihav-encoder.git transcoder: remove unused trait method --- diff --git a/src/transcoder.rs b/src/transcoder.rs index a287706..9debca7 100644 --- a/src/transcoder.rs +++ b/src/transcoder.rs @@ -150,7 +150,6 @@ pub struct DecodeContext { pub trait EncoderInterface { fn encode_frame(&mut self, dst_id: u32, frm: NAFrameRef, scale_opts: &[(String, String)], queue: &mut OutputQueue) -> EncoderResult; fn flush(&mut self, queue: &mut OutputQueue) -> EncoderResult<()>; - fn get_packet(&mut self) -> EncoderResult>; } pub struct AudioEncodeContext { @@ -219,9 +218,6 @@ impl EncoderInterface for AudioEncodeContext { } Ok(()) } - fn get_packet(&mut self) -> EncoderResult> { - self.encoder.get_packet() - } } pub struct VideoEncodeContext { @@ -329,9 +325,6 @@ impl EncoderInterface for VideoEncodeContext { } Ok(()) } - fn get_packet(&mut self) -> EncoderResult> { - self.encoder.get_packet() - } } pub enum OutputMode {