mirror of
https://github.com/Genymobile/scrcpy
synced 2025-09-04 16:25:14 +00:00
Enable video output file, with pts set by server
This commit is contained in:
committed by
Romain Vimont
parent
b5c64c0f5a
commit
d706c5df39
@@ -193,11 +193,11 @@ SDL_bool scrcpy(const struct scrcpy_options *options) {
|
||||
goto finally_destroy_frames;
|
||||
}
|
||||
|
||||
decoder_init(&decoder, &frames, device_socket);
|
||||
decoder_init(&decoder, &frames, device_socket, frame_size);
|
||||
|
||||
// now we consumed the header values, the socket receives the video stream
|
||||
// start the decoder
|
||||
if (!decoder_start(&decoder)) {
|
||||
if (!decoder_start(&decoder, options->out_filename)) {
|
||||
ret = SDL_FALSE;
|
||||
server_stop(&server);
|
||||
goto finally_destroy_file_handler;
|
||||
|
Reference in New Issue
Block a user