mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-04-21 01:33:36 +00:00
Fix orientation error message
When running `scrcpy --capture-orientation=@100`, the error shown is: > Unsupported orientation: @100 (expected 0, 90, 180, 270, flip0, flip90, flip180 or flip270) We should tell the user that the error is 100, not @100. Moreover, the function parse_orientation() should not access the `optarg` global variable. PR #6695 <https://github.com/Genymobile/scrcpy/pull/6695> Signed-off-by: Romain Vimont <rom@rom1v.com>
This commit is contained in:
parent
e17a885f32
commit
bad2183087
1 changed files with 1 additions and 1 deletions
|
|
@ -1729,7 +1729,7 @@ parse_orientation(const char *s, enum sc_orientation *orientation) {
|
|||
return true;
|
||||
}
|
||||
LOGE("Unsupported orientation: %s (expected 0, 90, 180, 270, flip0, "
|
||||
"flip90, flip180 or flip270)", optarg);
|
||||
"flip90, flip180 or flip270)", s);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue