fn extract_caps_int_field(caps: &str, field: &str) -> Option<u64>Expand description
Extract an int-valued field from a gst caps string. Caps fields
look like rate=(int)48000 or rate=48000; both shapes appear in
the wild depending on the gst version. Continues past non-matching
tokens (format=F32LE, layout=interleaved, …) and stops as soon
as it finds the first match, so a trailing channel-mask=0x… for
the channels query never bleeds in (strip_prefix("channels")
fails on channel-mask).