mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-01-26 09:04:30 +01: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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user