display results of a bounce in the region list
[ardour.git] / libs / ardour / source.cc
index ad0d0f8a133a957d67d1c8e6ad20ea3bc9ca5b8e..7ade8a8573fdd7db1187520cd62cd6b3c0057dfc 100644 (file)
@@ -42,13 +42,15 @@ using std::max;
 
 using namespace ARDOUR;
 
-Source::Source (string name)
+Source::Source (Session& s, string name)
+       : _session (s)
 {
        _name = name;
        _timestamp = 0;
 }
 
-Source::Source (const XMLNode& node) 
+Source::Source (Session& s, const XMLNode& node) 
+       : _session (s)
 {
        _timestamp = 0;
 
@@ -69,7 +71,7 @@ Source::get_state ()
        char buf[64];
 
        node->add_property ("name", _name);
-       _id.print (buf);
+       _id.print (buf, sizeof (buf));
        node->add_property ("id", buf);
 
        if (_timestamp != 0) {