From f35ac10553afce004279cf496a7e90f4794c1538 Mon Sep 17 00:00:00 2001 From: Rafostar <40623528+Rafostar@users.noreply.github.com> Date: Sun, 30 Aug 2020 20:09:36 +0200 Subject: [PATCH] Make sure loop is not running before starting it --- src/player.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/player.js b/src/player.js index 625370f5..e9fc57a8 100644 --- a/src/player.js +++ b/src/player.js @@ -42,7 +42,9 @@ class GtkPlayer extends GstPlayer.Player _onUriLoaded() { this.play(); - this.loop.run(); + + if(!this.loop.is_running()) + this.loop.run(); } _onWidgetDestroy()