fix "import at file position" when copying or channel-splitting files on import.
git-svn-id: svn://localhost/ardour2/branches/3.0@13711 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
76d85fb411
commit
076542f317
|
@ -221,6 +221,13 @@ SndFileSource::open ()
|
|||
|
||||
bool bwf_info_exists = _broadcast_info->load_from_file (sf);
|
||||
|
||||
if (_file_is_new && _length == 0 && writable() && !bwf_info_exists) {
|
||||
/* newly created files will not have a BWF header at this point in time.
|
||||
* Import will have called Source::set_timeline_position() if one exists
|
||||
* in the original. */
|
||||
header_position_offset = _timeline_position;
|
||||
}
|
||||
|
||||
/* Set our timeline position to either the time reference from a BWF header or the current
|
||||
start of the session.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue
Block a user