media: use ext_of(path) == "wav" for wav_markers in probe

This commit is contained in:
Dylan M. Taylor committed 2026-11-20 22:03:37 -05:00
1 parent 10882c0dee
commit 06911e364c
1 file changed
+1 -1
+1 -1
View File
@@ -28,7 +28,7 @@ pub fn probe(path: impl AsRef<Path>) -> Result<Footage> {
// A movie is read in place (its index), not loaded whole.
if let Some(src) = crate::stream::probe_source(path) {
let mut f = footage_from_source(&path.to_string_lossy(), &src?);
if f.container == "wav"
if ext_of(path) == "wav"
&& let Ok(bytes) = crate::read_regular_file(path)
{
f.markers = crate::wav_markers::read(&bytes);