update null sink for newly introduced stream duration
authorKostya Shishkov <kostya.shishkov@gmail.com>
Sun, 4 Oct 2020 09:58:48 +0000 (11:58 +0200)
committerKostya Shishkov <kostya.shiskov@gmail.com>
Sun, 4 Oct 2020 10:13:40 +0000 (12:13 +0200)
src/null.rs

index eceef40874c788c7a81b83d69a0122ba8673bc20..7d41877593ab82caf20dd9478d4ee3100b4f5ccf 100644 (file)
@@ -23,7 +23,7 @@ impl NAEncoder for NullEncoder {
                 NACodecTypeInfo::None => StreamType::Data,
             };
         let info = NACodecInfo::new("null", encinfo.format, None);
-        let mut stream = NAStream::new(stype, stream_id, info, encinfo.tb_num, encinfo.tb_den);
+        let mut stream = NAStream::new(stype, stream_id, info, encinfo.tb_num, encinfo.tb_den, 0);
         stream.set_num(stream_id as usize);
         let stream = stream.into_ref();
         self.stream = Some(stream.clone());