(self)
Close the ffmpeg process used to perform the decoding.
Close the ffmpeg process used to perform the decoding.
Close the ffmpeg process used to perform the decoding .
def close(self):
        """Close the ffmpeg process used to perform the decoding."""
        # Kill the process if it is still running.
        if hasattr(self, 'proc') and self.proc.returncode is None:
            self.proc.kill()
            self.proc.wait()
            self.devnull.close()
def close ( self ) : # Kill the process if it is still running. if hasattr ( self , 'proc' ) and self . proc . returncode is None : self . proc . kill ( ) self . proc . wait ( ) self . devnull . close ( )