Rename --output-file to --record

To record the screen to a local file:

    scrcpy --record file.mp4
This commit is contained in:
Romain Vimont
2018-11-11 14:03:29 +01:00
parent 70579dc709
commit 22bf0c19d6
3 changed files with 15 additions and 14 deletions

View File

@@ -192,8 +192,8 @@ SDL_bool scrcpy(const struct scrcpy_options *options) {
}
struct recorder *rec = NULL;
if (options->out_filename) {
if (!recorder_init(&recorder, options->out_filename, frame_size)) {
if (options->record_filename) {
if (!recorder_init(&recorder, options->record_filename, frame_size)) {
ret = SDL_FALSE;
server_stop(&server);
goto finally_destroy_file_handler;
@@ -255,7 +255,7 @@ finally_destroy_file_handler:
file_handler_join(&file_handler);
file_handler_destroy(&file_handler);
finally_destroy_recorder:
if (options->out_filename) {
if (options->record_filename) {
recorder_destroy(&recorder);
}
finally_destroy_frames: