ref: 88fc249b016fa3176f82f53a4bfbba8d87266ea0
parent: a4bf052635d805dbd751edb0e30db3c06df56d5a
author: Paul Brossier <piem@piem.org>
date: Sun Feb 10 17:30:15 EST 2013
examples/utils.c: exit if an output file could not be opened
--- a/examples/utils.c
+++ b/examples/utils.c
@@ -209,6 +209,10 @@
samplerate = aubio_source_get_samplerate(this_source);
if (sink_uri != NULL) {
this_sink = new_aubio_sink ((char_t*)sink_uri, samplerate);
+ if (this_sink == NULL) {
+ outmsg ("Could not open output file %s.\n", sink_uri);
+ exit (1);
+ }
}
}
#ifdef HAVE_LASH