diff --git a/utils/livesync/src/livesync/imp.rs b/utils/livesync/src/livesync/imp.rs index ba38a753..335a9d2f 100644 --- a/utils/livesync/src/livesync/imp.rs +++ b/utils/livesync/src/livesync/imp.rs @@ -38,7 +38,7 @@ fn audio_info_from_caps( fn duration_from_caps(caps: &gst::CapsRef) -> Option { caps.structure(0) - .filter(|s| s.name().starts_with("video/")) + .filter(|s| s.name().starts_with("video/") || s.name().starts_with("image/")) .and_then(|s| s.get::("framerate").ok()) .filter(|framerate| framerate.denom() > 0 && framerate.numer() > 0) .and_then(|framerate| {