summaryrefslogtreecommitdiff
path: root/libs/ardour/audio_diskstream.cc
diff options
context:
space:
mode:
authorSampo Savolainen <v2@iki.fi>2008-04-11 16:49:25 +0000
committerSampo Savolainen <v2@iki.fi>2008-04-11 16:49:25 +0000
commitda91ac66864edc77ed64ab6d2ecfc5b0f5778812 (patch)
treed4dd72a47d204851bda28da8f3cab69b8e4bb8c1 /libs/ardour/audio_diskstream.cc
parent73bb86c3d9220b876d688eb864d2f06aa5d7abae (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.cc4
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;
}