From e547d5b11627b28aeea118ffafabe1250d7d9b54 Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Fri, 12 Jun 2020 03:32:27 +1000 Subject: [PATCH] audioparams: removed debug message Not really necessary now. Specific situations can always print debug info if the params are invalid. --- app/render/audioparams.cpp | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/app/render/audioparams.cpp b/app/render/audioparams.cpp index 3abd18c0b..35c51aedf 100644 --- a/app/render/audioparams.cpp +++ b/app/render/audioparams.cpp @@ -121,16 +121,10 @@ int AudioParams::bits_per_sample() const bool AudioParams::is_valid() const { - bool valid = (sample_rate() > 0 - && channel_layout() > 0 - && format_ != SampleFormat::SAMPLE_FMT_INVALID - && format_ != SampleFormat::SAMPLE_FMT_COUNT); - - if (!valid) { - qWarning() << "Invalid params found:" << sample_rate() << channel_layout() << format(); - } - - return valid; + return (sample_rate() > 0 + && channel_layout() > 0 + && format_ != SampleFormat::SAMPLE_FMT_INVALID + && format_ != SampleFormat::SAMPLE_FMT_COUNT); } OLIVE_NAMESPACE_EXIT