aboutsummaryrefslogtreecommitdiffstats
path: root/nihav-game/src/demuxers
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2019-11-18 18:24:49 +0100
committerKostya Shishkov <kostya.shishkov@gmail.com>2019-11-18 18:24:49 +0100
commitcaf0f37ecea1e6e25f21fc6e824ac250fe976541 (patch)
treef2c3be96f734f11f22263784b4077ee8ef3e08ad /nihav-game/src/demuxers
parent47f26235350744ebf034ff18467e449a249f7703 (diff)
downloadnihav-caf0f37ecea1e6e25f21fc6e824ac250fe976541.tar.gz
fix demuxer tests after introducing seek index
Diffstat (limited to 'nihav-game/src/demuxers')
-rw-r--r--nihav-game/src/demuxers/bmv.rs6
-rw-r--r--nihav-game/src/demuxers/gdv.rs3
-rw-r--r--nihav-game/src/demuxers/vmd.rs3
3 files changed, 8 insertions, 4 deletions
diff --git a/nihav-game/src/demuxers/bmv.rs b/nihav-game/src/demuxers/bmv.rs
index 44e9193..5910342 100644
--- a/nihav-game/src/demuxers/bmv.rs
+++ b/nihav-game/src/demuxers/bmv.rs
@@ -252,7 +252,8 @@ mod test {
let mut br = ByteReader::new(&mut fr);
let mut dmx = BMVDemuxer::new(&mut br);
let mut sm = StreamManager::new();
- dmx.open(&mut sm).unwrap();
+ let mut si = SeekIndex::new();
+ dmx.open(&mut sm, &mut si).unwrap();
loop {
let pktres = dmx.get_frame(&mut sm);
if let Err(e) = pktres {
@@ -270,7 +271,8 @@ mod test {
let mut br = ByteReader::new(&mut fr);
let mut dmx = BMV3Demuxer::new(&mut br);
let mut sm = StreamManager::new();
- dmx.open(&mut sm).unwrap();
+ let mut si = SeekIndex::new();
+ dmx.open(&mut sm, &mut si).unwrap();
loop {
let pktres = dmx.get_frame(&mut sm);
if let Err(e) = pktres {
diff --git a/nihav-game/src/demuxers/gdv.rs b/nihav-game/src/demuxers/gdv.rs
index b70e344..438ced2 100644
--- a/nihav-game/src/demuxers/gdv.rs
+++ b/nihav-game/src/demuxers/gdv.rs
@@ -179,7 +179,8 @@ mod test {
let mut br = ByteReader::new(&mut fr);
let mut dmx = GremlinVideoDemuxer::new(&mut br);
let mut sm = StreamManager::new();
- dmx.open(&mut sm).unwrap();
+ let mut si = SeekIndex::new();
+ dmx.open(&mut sm, &mut si).unwrap();
loop {
let pktres = dmx.get_frame(&mut sm);
if let Err(e) = pktres {
diff --git a/nihav-game/src/demuxers/vmd.rs b/nihav-game/src/demuxers/vmd.rs
index 0c47f89..d095972 100644
--- a/nihav-game/src/demuxers/vmd.rs
+++ b/nihav-game/src/demuxers/vmd.rs
@@ -189,7 +189,8 @@ mod test {
let mut br = ByteReader::new(&mut fr);
let mut dmx = VMDDemuxer::new(&mut br);
let mut sm = StreamManager::new();
- dmx.open(&mut sm).unwrap();
+ let mut si = SeekIndex::new();
+ dmx.open(&mut sm, &mut si).unwrap();
loop {
let pktres = dmx.get_frame(&mut sm);
if let Err(e) = pktres {