From 97bb327b2a5fc1b459b958be28d2b281f1f9e390 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 9 Nov 2022 23:24:56 +0200 Subject: [PATCH] mp4: Remove unneeded cast in tests Part-of: --- mux/mp4/tests/tests.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/mux/mp4/tests/tests.rs b/mux/mp4/tests/tests.rs index 4a766ce7..d1560b76 100644 --- a/mux/mp4/tests/tests.rs +++ b/mux/mp4/tests/tests.rs @@ -96,9 +96,7 @@ fn test_basic() { let audio_streams = info.audio_streams(); assert_eq!(audio_streams.len(), 1); - let audio_stream = audio_streams[0] - .downcast_ref::() - .unwrap(); + let audio_stream = &audio_streams[0]; assert_eq!(audio_stream.channels(), 1); assert_eq!(audio_stream.sample_rate(), 44_100); let caps = audio_stream.caps().unwrap(); @@ -115,9 +113,7 @@ fn test_basic() { let video_streams = info.video_streams(); assert_eq!(video_streams.len(), 1); - let video_stream = video_streams[0] - .downcast_ref::() - .unwrap(); + let video_stream = &video_streams[0]; assert_eq!(video_stream.width(), 320); assert_eq!(video_stream.height(), 240); assert_eq!(video_stream.framerate(), gst::Fraction::new(30, 1));