make audio encode failure non-fatal so we can run to the end at least

This commit is contained in:
Vivian Lim 2020-11-29 15:12:48 -08:00
parent c78d1cb9fd
commit 439e575982
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ impl MyEmulator {
self.video_encoder.encode(&vframe, &mut out).unwrap();
}
while let Ok(..) = self.audio_filter.get("out").unwrap().sink().frame(&mut aframe) {
self.audio_encoder.encode(&aframe, &mut out).unwrap();
self.audio_encoder.encode(&aframe, &mut out);//.unwrap();
}
}