mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-10 11:15:33 +00:00
mp4: Remove unneeded cast in tests
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/987>
This commit is contained in:
parent
81a46ee33d
commit
23e8fea170
1 changed files with 2 additions and 6 deletions
|
@ -96,9 +96,7 @@ fn test_basic() {
|
||||||
|
|
||||||
let audio_streams = info.audio_streams();
|
let audio_streams = info.audio_streams();
|
||||||
assert_eq!(audio_streams.len(), 1);
|
assert_eq!(audio_streams.len(), 1);
|
||||||
let audio_stream = audio_streams[0]
|
let audio_stream = &audio_streams[0];
|
||||||
.downcast_ref::<gst_pbutils::DiscovererAudioInfo>()
|
|
||||||
.unwrap();
|
|
||||||
assert_eq!(audio_stream.channels(), 1);
|
assert_eq!(audio_stream.channels(), 1);
|
||||||
assert_eq!(audio_stream.sample_rate(), 44_100);
|
assert_eq!(audio_stream.sample_rate(), 44_100);
|
||||||
let caps = audio_stream.caps().unwrap();
|
let caps = audio_stream.caps().unwrap();
|
||||||
|
@ -115,9 +113,7 @@ fn test_basic() {
|
||||||
|
|
||||||
let video_streams = info.video_streams();
|
let video_streams = info.video_streams();
|
||||||
assert_eq!(video_streams.len(), 1);
|
assert_eq!(video_streams.len(), 1);
|
||||||
let video_stream = video_streams[0]
|
let video_stream = &video_streams[0];
|
||||||
.downcast_ref::<gst_pbutils::DiscovererVideoInfo>()
|
|
||||||
.unwrap();
|
|
||||||
assert_eq!(video_stream.width(), 320);
|
assert_eq!(video_stream.width(), 320);
|
||||||
assert_eq!(video_stream.height(), 240);
|
assert_eq!(video_stream.height(), 240);
|
||||||
assert_eq!(video_stream.framerate(), gst::Fraction::new(30, 1));
|
assert_eq!(video_stream.framerate(), gst::Fraction::new(30, 1));
|
||||||
|
|
Loading…
Reference in a new issue