Skip to main content

install_log_bridge

Function install_log_bridge 

Source
pub fn install_log_bridge()
Expand description

Route FFmpeg’s internal diagnostics into the log facade under the ffmpeg target, instead of letting them go to stderr.

Idempotent and safe to call from any thread: FFmpeg holds a single global callback pointer, and repeat calls do nothing. ensure_initialized already calls this, so most callers never need to.

This changes process-global FFmpeg state. An application that wants FFmpeg’s messages on stderr should not call ensure_initialized (or should install its own callback afterwards).