* bugfix: SMFSource: track footer at beginning of track not overwritten
authorHans Baier <hansfbaier@googlemail.com>
Tue, 6 May 2008 09:38:23 +0000 (09:38 +0000)
committerHans Baier <hansfbaier@googlemail.com>
Tue, 6 May 2008 09:38:23 +0000 (09:38 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@3320 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/smf_source.cc

index a39074747bd5055f2f3d8019a8441a69782492d6..0816cc03d943bc5f3c72eb1a0799038d1f93ada6 100644 (file)
@@ -170,8 +170,7 @@ SMFSource::open()
 
                // Write a tentative header just to pad things out so writing happens in the right spot
                flush_header();
-               // this is the first footer written, so we dont need to seek for the footer
-               write_footer();
+               flush_footer();
        }
                
        return (_fd == 0) ? -1 : 0;