]> git.sesse.net Git - kdenlive/commitdiff
Fix detection of alsa devices on non english systems (parsing of aplay)
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Sat, 30 Jul 2011 22:13:47 +0000 (22:13 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Sat, 30 Jul 2011 22:13:47 +0000 (22:13 +0000)
svn path=/trunk/kdenlive/; revision=5814

src/kdenlivesettingsdialog.cpp

index 53c43c6e246844b5dfb88ca19b8885e0777f11d0..de9ad75e9fc0c301798dae800f2570deb4766a17 100644 (file)
@@ -432,8 +432,8 @@ void KdenliveSettingsDialog::slotReadAudioDevices()
     kDebug() << result;
     QStringList lines = result.split('\n');
     foreach(const QString & data, lines) {
-        kDebug() << "// READING LINE: " << data;
-        if (data.simplified().startsWith("card")) {
+        //kDebug() << "// READING LINE: " << data;
+        if (!data.startsWith(" ") && data.count(':') > 1) {
             QString card = data.section(':', 0, 0).section(' ', -1);
             QString device = data.section(':', 1, 1).section(' ', -1);
             m_configSdl.kcfg_audio_device->addItem(data.section(':', -1), "plughw:" + card + ',' + device);