diff --git a/clapper_src/playerBase.js b/clapper_src/playerBase.js index f66a80fc..bc54eeca 100644 --- a/clapper_src/playerBase.js +++ b/clapper_src/playerBase.js @@ -45,7 +45,7 @@ class ClapperPlayerBase extends GstPlayer.Player video_renderer: renderer }); - this.gtkglsink = gtkglsink; + this.widget = gtkglsink.widget; this.widget.vexpand = true; this.widget.hexpand = true; @@ -66,11 +66,6 @@ class ClapperPlayerBase extends GstPlayer.Player this.ref(); } - get widget() - { - return this.gtkglsink.widget; - } - set_and_bind_settings() { let settingsToSet = [ @@ -159,7 +154,7 @@ class ClapperPlayerBase extends GstPlayer.Player draw_black(isEnabled) { - this.gtkglsink.ignore_textures = isEnabled; + this.widget.ignore_textures = isEnabled; if(this.state !== GstPlayer.PlayerState.PLAYING) this.widget.queue_render();