summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2010-07-01 15:02:18 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2010-07-01 15:02:18 +0000
commitd3a4655ddd24cb575cf6ecac5a0f0b33a487bedf (patch)
tree83633008b064cbb4326acb9ce0d21d33c9d01a77 /libs
parent69b7b53aec2c2857dd02ed6c03fc54db2e044cd0 (diff)
allow zero length MIDI files again and remove debug output
git-svn-id: svn://localhost/ardour2/branches/3.0@7347 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r--libs/evoral/src/SMF.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/libs/evoral/src/SMF.cpp b/libs/evoral/src/SMF.cpp
index 5768b1cae3..332547a13b 100644
--- a/libs/evoral/src/SMF.cpp
+++ b/libs/evoral/src/SMF.cpp
@@ -275,22 +275,12 @@ SMF::begin_write()
void
SMF::end_write() THROW_FILE_ERROR
{
- /* don't create empty MIDI files
- */
-
- smf_rewind (_smf); // smf_save() would have done this anyway
- if (smf_peek_next_event (_smf) == 0) {
- return;
- }
-
PBD::StdioFileDescriptor d (_file_path, "w+");
FILE* f = d.allocate ();
if (f == 0) {
throw FileError ();
}
- cerr << "\n\n\nSAVE SMF to " << _file_path << "\n\n";
-
if (smf_save(_smf, f) != 0) {
throw FileError();
}