mirror of
https://github.com/adamdruppe/arsd.git
synced 2025-04-26 13:20:05 +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:
|
||||
The status code provided by the FFmpeg program.
|
||||
+/
|
||||
int close()
|
||||
in (this.isOpen) {
|
||||
int close() {
|
||||
if (!this.isOpen) {
|
||||
return;
|
||||
}
|
||||
|
||||
_input.writeEnd.flush();
|
||||
_input.writeEnd.close();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue