2
0
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:
Ivan Gorinov
2018-10-10 22:12:36 -07:00
committed by Romain Vimont
parent b5c64c0f5a
commit d706c5df39
7 changed files with 126 additions and 10 deletions

View File

@@ -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;