13
0

Fix a -Wmaybe-uninitialized (disk-reader, no audio)

This commit is contained in:
Robin Gareus 2019-05-26 12:56:10 +02:00
parent 203b249135
commit 8cce89664c
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -278,11 +278,6 @@ DiskReader::run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_samp
BufferSet& scratch_bufs (_session.get_scratch_buffers (bufs.count()));
const bool still_locating = _session.global_locate_pending() || pending_overwrite ();
if (c->empty()) {
/* do nothing with audio */
goto midi;
}
assert (speed == -1 || speed == 0 || speed == 1);
if (speed == 0) {
@ -291,6 +286,11 @@ DiskReader::run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_samp
disk_samples_to_consume = nframes;
}
if (c->empty()) {
/* do nothing with audio */
goto midi;
}
if (_declick_amp.gain () != target_gain && target_gain == 0) {
/* fade-out */
#if 0