Skip to main content

watch_decode_progress

Function watch_decode_progress 

Source
pub fn watch_decode_progress(
    progressed: impl Fn() + 'static,
) -> DecodeProgressWatch
Expand description

Calls progressed on this thread each time a decoder operation produces a frame or a packet copy plan reads a source packet, until the guard drops.

Lets an outside stall watcher see a long seek as alive rather than blocked.