mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-21 17:59:55 +00:00
Suggest command line arguments without quotes
Replace argument suggestion:
--video-encoder='c2.android.avc.encoder'
by:
--video-encoder=c2.android.avc.encoder
On Linux, the quotes are interpreted by the shell, but on Windows they
are passed as is.
This was harmless, because even transmitted as is, they were interpreted
by the shell on the device. However, special characters are now
validated since commit bec3321fff
, making
the command fail.
Fixes #5329 <https://github.com/Genymobile/scrcpy/issues/5329>
This commit is contained in:
parent
7a9ea5c66f
commit
ec602a0334
1 changed files with 2 additions and 2 deletions
|
@ -31,7 +31,7 @@ public final class LogUtils {
|
|||
} else {
|
||||
for (CodecUtils.DeviceEncoder encoder : videoEncoders) {
|
||||
builder.append("\n --video-codec=").append(encoder.getCodec().getName());
|
||||
builder.append(" --video-encoder='").append(encoder.getInfo().getName()).append("'");
|
||||
builder.append(" --video-encoder=").append(encoder.getInfo().getName());
|
||||
}
|
||||
}
|
||||
return builder.toString();
|
||||
|
@ -45,7 +45,7 @@ public final class LogUtils {
|
|||
} else {
|
||||
for (CodecUtils.DeviceEncoder encoder : audioEncoders) {
|
||||
builder.append("\n --audio-codec=").append(encoder.getCodec().getName());
|
||||
builder.append(" --audio-encoder='").append(encoder.getInfo().getName()).append("'");
|
||||
builder.append(" --audio-encoder=").append(encoder.getInfo().getName());
|
||||
}
|
||||
}
|
||||
return builder.toString();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue