diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-05-28 00:59:53 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-05-28 00:59:53 +0000 |
commit | 43495d7f2b4ee4189e7b5497539ebe8eb126a3aa (patch) | |
tree | f92af61eabcacf618ab18803538e54ee562480d0 /libs/ardour/session_state.cc | |
parent | 06da4278dbcc474a94e3b65c285dcfe26d2df8a4 (diff) |
putative fix for crashes related to diskstream playback buffer refills with compound regions
git-svn-id: svn://localhost/ardour2/branches/3.0@9620 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session_state.cc')
-rw-r--r-- | libs/ardour/session_state.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index 3c2496eba5..2db17f1e58 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -221,7 +221,6 @@ Session::first_stage_init (string fullpath, string snapshot_name) _speakers.reset (new Speakers); AudioDiskstream::allocate_working_buffers(); - AudioSource::allocate_working_buffers (); /* default short fade = 15ms */ @@ -3559,6 +3558,8 @@ Session::config_changed (std::string p, bool ours) solo_control_mode_changed (); } else if (p == "timecode-offset" || p == "timecode-offset-negative") { last_timecode_valid = false; + } else if (p == "playback-buffer-seconds") { + AudioSource::allocate_working_buffers (frame_rate()); } set_dirty (); |