]> git.nihav.org Git - nihav-encoder.git/commitdiff
transcoder: remove unused trait method
authorKostya Shishkov <kostya.shishkov@gmail.com>
Wed, 28 May 2025 16:17:39 +0000 (18:17 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Wed, 28 May 2025 16:17:39 +0000 (18:17 +0200)
src/transcoder.rs

index a2877061e81417f97e665f8c7521a980c2ca8f1c..9debca78826251583ef5ca70130a0555e7bc9c88 100644 (file)
@@ -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<bool>;
     fn flush(&mut self, queue: &mut OutputQueue) -> EncoderResult<()>;
-    fn get_packet(&mut self) -> EncoderResult<Option<NAPacket>>;
 }
 
 pub struct AudioEncodeContext {
@@ -219,9 +218,6 @@ impl EncoderInterface for AudioEncodeContext {
         }
         Ok(())
     }
-    fn get_packet(&mut self) -> EncoderResult<Option<NAPacket>> {
-        self.encoder.get_packet()
-    }
 }
 
 pub struct VideoEncodeContext {
@@ -329,9 +325,6 @@ impl EncoderInterface for VideoEncodeContext {
         }
         Ok(())
     }
-    fn get_packet(&mut self) -> EncoderResult<Option<NAPacket>> {
-        self.encoder.get_packet()
-    }
 }
 
 pub enum OutputMode {