scrcpy/app
Romain Vimont 9c72cecfef Open recording file from the recorder thread
The recorder opened the target file from the packet sink open()
callback, called by the demuxer. Only then the recorder thread was
started.

One golden rule for the recorder is to never block the demuxer for I/O,
because it would impact mirroring. This rule is respected on recording
packets, but not for the initial recorder opening.

Therefore, start the recorder thread from sc_recorder_init(), open the
file immediately from the recorder thread, then make it wait for the
stream to start (on packet sink open()).

Now that the recorder can report errors directly (rather than making the
demuxer call fail), it is possible to report file opening error even
before the packet sink is open.
2023-02-24 21:29:30 +01:00
..
data Fix --encoder documentation 2023-02-23 13:27:34 +01:00
prebuilt-deps Upgrade FFmpeg (5.1.2) for Windows 64-bit 2022-12-22 12:33:08 +01:00
src Open recording file from the recorder thread 2023-02-24 21:29:30 +01:00
tests Forward action button to device 2023-01-30 20:57:54 +01:00
meson.build Extract packet merging 2023-02-11 09:44:33 +01:00
scrcpy-windows.manifest Set DPI awareness for Windows 2021-12-20 19:13:02 +01:00
scrcpy-windows.rc Bump version to 1.25 2022-12-22 12:33:29 +01:00
scrcpy.1 Fix --encoder documentation 2023-02-23 13:27:34 +01:00