[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log callback interface #91

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

jwiesler
Copy link
@jwiesler jwiesler commented Feb 5, 2022

This pull request implements a safe interface for setting a log callback and provides a simple default implementation that prints via the log crate.
It does not change any existing APIs and works on all ffmpeg versions.

It only supports the targets unix and windows but if you know how the varargs parameter looks like on other targets it can be easily extended.

I'm open for discussion about whether this should be behind a feature flag, but I think there aren't any programs out there that don't include log and vsprintf is like 30 LOC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant