B14: dv map segment worker join() failure to Corrupt
Browse files at this commit449ea58b691a02851d4c7d3e8b773fd3e312f934Parent: 2fd03db1 changed file +5 -2
crates/ec-dv/src/video.rsmodified+5 -2
| @@ -350,8 +350,11 @@ impl DvVideoDecoder { | |||
| 350 | }) | 350 | }) |
| 351 | }) | 351 | }) |
| 352 | .collect(); | 352 | .collect(); |
| 353 | - handles.into_iter().map(|h| h.join().expect("DV segment worker panicked")).collect() | 353 | + handles |
| 354 | - }); | 354 | + .into_iter() |
| 355 | + .map(|h| h.join().map_err(|_| Error::corrupt("DV: segment worker panicked"))) | ||
| 356 | + .collect::<Result<Vec<Out>>>() | ||
| 357 | + })?; | ||
| 355 | for o in &outs { | 358 | for o in &outs { |
| 356 | o.apply(&mut planes); | 359 | o.apply(&mut planes); |
| 357 | } | 360 | } |