diff options
author | Sampo Savolainen <v2@iki.fi> | 2008-04-11 16:49:25 +0000 |
---|---|---|
committer | Sampo Savolainen <v2@iki.fi> | 2008-04-11 16:49:25 +0000 |
commit | da91ac66864edc77ed64ab6d2ecfc5b0f5778812 (patch) | |
tree | d4dd72a47d204851bda28da8f3cab69b8e4bb8c1 /libs/ardour/audio_diskstream.cc | |
parent | 73bb86c3d9220b876d688eb864d2f06aa5d7abae (diff) |
Make sure ardour does not crash if there is are audio diskstreams with
no IO's associated with them. We still need to add a warning to the user
about the inconsistency in the ardour file.
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3250 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/audio_diskstream.cc')
-rw-r--r-- | libs/ardour/audio_diskstream.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/audio_diskstream.cc b/libs/ardour/audio_diskstream.cc index 33e7c373cd..95040ed239 100644 --- a/libs/ardour/audio_diskstream.cc +++ b/libs/ardour/audio_diskstream.cc @@ -527,7 +527,7 @@ AudioDiskstream::process (nframes_t transport_frame, nframes_t nframes, nframes_ commit_should_unlock = false; - if (!_io->active()) { + if (!_io || !_io->active()) { _processed = true; return 0; } @@ -832,7 +832,7 @@ AudioDiskstream::commit (nframes_t nframes) { bool need_butler = false; - if (!_io->active()) { + if (!_io || !_io->active()) { return false; } |