From a501f91dae4588180c65b3fa9da523a365248655 Mon Sep 17 00:00:00 2001 From: Luke Curley Date: Fri, 26 May 2023 14:59:12 -0700 Subject: [PATCH] Panic if we can't open the media file. --- src/session/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/session/mod.rs b/src/session/mod.rs index 1282b92..58d0342 100644 --- a/src/session/mod.rs +++ b/src/session/mod.rs @@ -52,7 +52,7 @@ impl transport::App for Session { session.accept_connect_request(conn, None)?; // TODO - let media = media::Source::new("../media/fragmented.mp4")?; + let media = media::Source::new("../media/fragmented.mp4").expect("failed to open fragmented.mp4"); let init = &media.init; // Create a JSON header.