mirror of
https://github.com/storytold/effectcraft.git
synced 2026-12-05 13:33:02 -05:00
media: use ext_of(path) == "wav" for wav_markers in probe
This commit is contained in:
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user