diff options
| author | Tim Redfern <tim@eclectronics.org> | 2013-09-07 15:09:03 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2013-09-07 15:09:03 +0100 |
| commit | a8f03016896f929ab51631a42de4fc10c16233ae (patch) | |
| tree | 49387ec250e35ed850a8899e4ebe93b7d6713120 /rotord/src/graph.cpp | |
| parent | c82fb2010c8ce4741f30f91816fca76d6de98dbf (diff) | |
cancelling audio analysis
Diffstat (limited to 'rotord/src/graph.cpp')
| -rw-r--r-- | rotord/src/graph.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<Audio_processor*> 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) { |
