aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/General')
-rw-r--r--src/plugins/General/rgscan/rgscanner.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/plugins/General/rgscan/rgscanner.cpp b/src/plugins/General/rgscan/rgscanner.cpp
index a9c78adb8..db80af7ce 100644
--- a/src/plugins/General/rgscan/rgscanner.cpp
+++ b/src/plugins/General/rgscan/rgscanner.cpp
@@ -93,6 +93,15 @@ bool RGScanner::prepare(const QString &url)
delete decoder;
return false;
}
+ if(decoder->audioParameters().channels() > 2)
+ {
+ qWarning("RGScanner: [%s] unsupported channel count: %d",
+ qPrintable(name),
+ decoder->audioParameters().channels());
+ delete source;
+ delete decoder;
+ return false;
+ }
m_decoder = decoder;
m_source = source;
m_user_stop = false;