mirror of
https://github.com/adamdruppe/arsd.git
synced 2025-04-29 06:40:00 +03:00
Allow PixmapRecorder.close() to be called on inactive recorders
This commit is contained in:
parent
a49e7c16e5
commit
d209923433
1 changed files with 4 additions and 2 deletions
|
@ -394,8 +394,10 @@ final class PixmapRecorder {
|
||||||
Returns:
|
Returns:
|
||||||
The status code provided by the FFmpeg program.
|
The status code provided by the FFmpeg program.
|
||||||
+/
|
+/
|
||||||
int close()
|
int close() {
|
||||||
in (this.isOpen) {
|
if (!this.isOpen) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
_input.writeEnd.flush();
|
_input.writeEnd.flush();
|
||||||
_input.writeEnd.close();
|
_input.writeEnd.close();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue