def switchDecoding(self, state: int) -> None:
self.parent.parent.mpvWidget.mpv.set_property('hwdec', 'auto' if state == Qt.Checked else 'no')
self.parent.parent.saveSetting('hwdec', state == Qt.Checked)
self.parent.parent.hardwareDecoding = (state == Qt.Checked)
评论列表
文章目录