Commit 51fac613 authored by Meg Ford's avatar Meg Ford

waveform.js: Set the pipeline to null if we've created it to generate a play waveform.

parent 6ab9bbc3
......@@ -152,7 +152,7 @@ const WaveForm = new Lang.Class({
},
startGeneration: function() {
this.pipeline.set_state(Gst.State.PLAYING)
this.pipeline.set_state(Gst.State.PLAYING);
},
stopGeneration: function() {
......@@ -253,6 +253,10 @@ const WaveForm = new Lang.Class({
endDrawing: function() {
let width = this._grid.get_allocated_width();
if(this.pipeline)
this.stopGeneration();
this.count = 0;
peaks.length = 0;
this.drawing.destroy();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment