Stop pipeline before replacing playlist

This commit is contained in:
Rafał Dzięgiel
2021-04-12 19:28:12 +02:00
parent 774687710f
commit aa49d25df5

View File

@@ -110,6 +110,9 @@ class ClapperPlayer extends PlayerBase
set_playlist(playlist) set_playlist(playlist)
{ {
if(this.state !== GstClapper.ClapperState.STOPPED)
this.stop();
this.playlistWidget.removeAll(); this.playlistWidget.removeAll();
this.canAutoFullscreen = true; this.canAutoFullscreen = true;