summaryrefslogtreecommitdiff
path: root/src/lib/external_audio_decoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-11-16 21:42:31 +0000
committerCarl Hetherington <cth@carlh.net>2012-11-16 21:42:31 +0000
commit40532d61ea4909b3f8b12dd7024de217dbdfec6d (patch)
tree4ea11f4a29a1a0fc41489eef4665a8df4c5ffa02 /src/lib/external_audio_decoder.cc
parent1eb73c1d864125e209d78b992ba2c6e278e42b74 (diff)
Various external audio fixes.
Diffstat (limited to 'src/lib/external_audio_decoder.cc')
-rw-r--r--src/lib/external_audio_decoder.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/external_audio_decoder.cc b/src/lib/external_audio_decoder.cc
index 89e10bfc0..2297ac4da 100644
--- a/src/lib/external_audio_decoder.cc
+++ b/src/lib/external_audio_decoder.cc
@@ -25,6 +25,7 @@
using std::vector;
using std::string;
using std::min;
+using std::cout;
using boost::shared_ptr;
ExternalAudioDecoder::ExternalAudioDecoder (shared_ptr<Film> f, shared_ptr<const Options> o, Job* j)
@@ -101,6 +102,10 @@ ExternalAudioDecoder::pass ()
Audio (audio);
frames -= this_time;
}
+
+ for (size_t i = 0; i < sndfiles.size(); ++i) {
+ sf_close (sndfiles[i]);
+ }
return true;
}