Skip to content
Snippets Groups Projects
Commit 462277e7 authored by Lyndon Brown's avatar Lyndon Brown
Browse files

record: avoid pointless file creation for probing

when probing muxers we don't really need the temporary file to exist in the
filesystem, we can use vlc_memfd() and pass along the file descriptor for
duplication in the file access module.

OutputNew() takes a new 'fd' param, and when probing we use that to pass
in the FD returned by vlc_memfd(), with a NULL for the path. Otherwise we
provide a path and -1 for 'fd'. If 'fd' is -1 it uses 'file' as the access
module and the specified path. If 'fd' is not -1, it uses the FD converted
to a string as the path and 'fd' as the access module. (same module,
different shortcut, which just triggers FD mode via the different access
name).
parent 68af6dd1
No related branches found
No related tags found
1 merge request!4test mkstemp with CI
Pipeline #28837 canceled with stage
in 2 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment