Compare commits

...

2 Commits

Author SHA1 Message Date
Romain Vimont
3c8f996822 Log av_write_frame failure
Refs #2218 <https://github.com/Genymobile/scrcpy/issues/2218>
2021-04-01 23:18:57 +02:00
Romain Vimont
b77932a5b7 Add instructions to uninstall 2021-04-01 09:47:15 +02:00
2 changed files with 21 additions and 4 deletions

View File

@@ -33,6 +33,12 @@ git pull
./install_release.sh
```
To uninstall:
```bash
sudo ninja -Cbuild-auto uninstall
```
## Branches
@@ -295,11 +301,16 @@ After a successful build, you can install _scrcpy_ on the system:
sudo ninja -Cx install # without sudo on Windows
```
This installs two files:
This installs three files:
- `/usr/local/bin/scrcpy`
- `/usr/local/share/scrcpy/scrcpy-server`
Just remove them to "uninstall" the application.
- `/usr/local/share/man/man1/scrcpy.1`
You can then [run](README.md#run) _scrcpy_.
### Uninstall
```bash
sudo ninja -Cx uninstall # without sudo on Windows
```

View File

@@ -252,7 +252,13 @@ recorder_write(struct recorder *recorder, AVPacket *packet) {
}
recorder_rescale_packet(recorder, packet);
return av_write_frame(recorder->ctx, packet) >= 0;
int ret = av_write_frame(recorder->ctx, packet);
if (ret < 0) {
LOGE("Could not write frame: %d\n", ret);
return false;
}
return true;
}
static int