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

View File

@@ -133,14 +133,6 @@ class ClapperPlayer extends GstClapper.Clapper
debug(`changed rank: ${oldRank} -> ${rank} for ${name}`);
}
draw_black(isEnabled)
{
this.widget.ignore_textures = isEnabled;
if(this.state !== GstClapper.ClapperState.PLAYING)
this.widget.queue_render();
}
set_uri(uri)
{
this.customVideoTitle = null;