From a8f03016896f929ab51631a42de4fc10c16233ae Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Sat, 7 Sep 2013 15:09:03 +0100 Subject: cancelling audio analysis --- rotord/src/graph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rotord/src/graph.cpp') diff --git a/rotord/src/graph.cpp b/rotord/src/graph.cpp index 333d11c..f54b18c 100644 --- a/rotord/src/graph.cpp +++ b/rotord/src/graph.cpp @@ -532,7 +532,7 @@ bool Graph::load_audio(const string &filename,vector processor AVFrame* frame=loader.get_frame(); int sample_processed=0; - while (frame) + while (frame&&!cancelled) { //now we can pass the data to the processor(s) for (auto p: processors) { -- cgit v1.2.3