#include "ardour/session.h"
#include "ardour/track.h"
-#include "i18n.h"
+#include "pbd/i18n.h"
#include <locale.h>
using namespace std;
_playlist = playlist;
_playlist->use();
- if (!in_set_state && recordable()) {
+ if (!in_set_state && destructive() && recordable()) {
reset_write_sources (false);
}
{
XMLNode* node = new XMLNode ("Diskstream");
char buf[64];
- LocaleGuard lg (X_("C"));
+ LocaleGuard lg;
node->add_property ("flags", enum_2_string (_flags));
node->add_property ("playlist", _playlist->name());
int
Diskstream::set_state (const XMLNode& node, int /*version*/)
{
- const XMLProperty* prop;
+ XMLProperty const * prop;
if ((prop = node.property ("name")) != 0) {
_name = prop->value();
continue;
}
boost::shared_ptr<AutomationList> alist = ac->alist();
-
+ if (!alist->size()) {
+ continue;
+ }
XMLNode & before = alist->get_state ();
bool const things_moved = alist->move_ranges (movements);
if (things_moved) {
for (set<Evoral::Parameter>::const_iterator i = a.begin (); i != a.end (); ++i) {
boost::shared_ptr<AutomationList> al = processor->automation_control(*i)->alist();
+ if (!al->size()) {
+ continue;
+ }
XMLNode & before = al->get_state ();
bool const things_moved = al->move_ranges (movements);
if (things_moved) {