Skip to content

Commit

Permalink
Fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
yury committed Nov 22, 2024
1 parent 8f2cc3f commit 7764d46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cidre/examples/av-asset-reader/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async fn main() {

let mut reader = av::AssetReader::with_asset(&asset).unwrap();
reader.add_output(&output).unwrap();
let true = reader.start_reading() else {
let true = reader.start_reading().expect("Failed to start reading") else {
println!("error: {:?}", reader.error());
println!("status: {:?}", reader.status());
return;
Expand Down
2 changes: 1 addition & 1 deletion cidre/examples/av-asset-writer/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ fn writer_and_input(

let mut writer = av::AssetWriter::with_url_and_file_type(dst.as_ns(), file_type).unwrap();

assert!(reader.start_reading());
assert!(reader.start_reading().expect("failed to start reading"));
let buf = output
.next_sample_buf()
.expect("Failed to copy next sample buf")
Expand Down

0 comments on commit 7764d46

Please # to comment.