Files
scrcpy/app
Romain Vimont 5052e15f7f Create recorder streams from packet sinks ops
Previously, the packet sink push() implementation just set the codec and
notified a wait condition. Then the recorder thread read the codec and
created the AVStream.

But this was racy: an AVFrame could be pushed before the creation of the
AVStream, causing its video_stream_index or audio_stream_index to be
initialized to -1.

Also, in the future, the AVStream initialization might need data
provided by the packet sink open(), so initialize it there (with a
mutex).
2023-03-11 15:57:25 +01:00
..
2023-03-10 22:22:15 +01:00
2023-03-10 22:22:15 +01:00
2023-03-10 22:22:15 +01:00
2022-12-22 12:33:29 +01:00
2023-03-10 22:22:15 +01:00