def clearDevice(self):
print(self.pre, "<STR_LIT>")<EOL>self.report("<STR_LIT>")<EOL>if not self.device:<EOL><INDENT>return<EOL><DEDENT>if (self.mvision_process==None):<EOL><INDENT>return<EOL><DEDENT>self.filterchain.delViewPort(self.viewport)<EOL>self.filterchain.releaseShmem(self.shmem_name)<EOL>self.mvision_process.deactivate() <EOL>self.main_layout.removeWidget(self.mvision_widget)<EOL>self.filterchain = None<EOL>self.device = None<EOL>self.video.update()<EOL>
Remove the current stream