sink: Automatically draw black when going to NULL state

Remove all workarounds including ignore_textures prop and draw black functions and handle that automatically in sink when going into NULL state.
This commit is contained in:
Rafał Dzięgiel
2021-06-02 20:28:24 +02:00
parent 0b7f31b7c2
commit 8fc64eaf73
5 changed files with 14 additions and 53 deletions

6
src/controls.js vendored
View File

@@ -247,9 +247,6 @@ class ClapperControls extends Gtk.Box
}
if(checkButton.activeId < 0) {
if(checkButton.type === 'video')
clapperWidget.player.draw_black(true);
return clapperWidget.player[
`set_${checkButton.type}_track_enabled`
](false);
@@ -259,9 +256,6 @@ class ClapperControls extends Gtk.Box
clapperWidget.player[setTrack](checkButton.activeId);
clapperWidget.player[`${setTrack}_enabled`](true);
if(checkButton.type === 'video')
clapperWidget.player.draw_black(false);
}
_handleVisualizationChange(checkButton)