visibility macros and flush() added to SrcFileSource; merge with master
[ardour.git] / libs / audiographer / src / general / broadcast_info.cc
index a0c41ca70c13fca9bc171d53decc0befab728a8c..df69ac9c79df618a07f4891f0193824b1e67b98f 100644 (file)
@@ -34,7 +34,7 @@ namespace AudioGrapher
 static void
 snprintf_bounded_null_filled (char* target, size_t target_size, char const * fmt, ...)
 {
-       char buf[target_size+1];
+       char *buf = (char*)alloca(target_size+1);
        va_list ap;
 
        va_start (ap, fmt);
@@ -168,7 +168,6 @@ BroadcastInfo::write_to_file (std::string const & filename)
 bool
 BroadcastInfo::write_to_file (SNDFILE* sf)
 {
-       std::cerr << "AG set BWF as " << sizeof(*info) << std::endl;
        if (sf_command (sf, SFC_SET_BROADCAST_INFO, info, sizeof (*info)) != SF_TRUE) {
                update_error();
                return false;