[vlmc-devel] ProjectWizard: Get the correct field of "NbChannnels"

Yikai Lu git at videolan.org
Tue Apr 12 14:10:24 CEST 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Sun Apr 10 23:25:29 2016 +0900| [8c5b3ff371d89a0ec428134d33a373daf41a2c2c] | committer: Hugo Beauzée-Luyssen

ProjectWizard: Get the correct field of "NbChannnels"

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> https://code.videolan.org/videolan/vlmc/commit/8c5b3ff371d89a0ec428134d33a373daf41a2c2c
---

 src/Gui/wizard/ProjectWizard.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Gui/wizard/ProjectWizard.cpp b/src/Gui/wizard/ProjectWizard.cpp
index f1ba18a..b31adbd 100644
--- a/src/Gui/wizard/ProjectWizard.cpp
+++ b/src/Gui/wizard/ProjectWizard.cpp
@@ -115,7 +115,7 @@ ProjectWizard::accept()
         projectPreferences->setValue( "video/VideoBitRate", field( "vbitrate" ) );
         projectPreferences->setValue( "audio/AudioSampleRate", field( "samplerate" ).toString().replace( " Hz", "" ) );
         projectPreferences->setValue( "audio/AudioBitRate", field( "abitrate" ).toString().replace( " Kbps", "" ) );
-        projectPreferences->setValue( "audio/NbChannels", field( "samplerate" ) );
+        projectPreferences->setValue( "audio/NbChannels", field( "channels" ) );
     }
     QDialog::accept();
 }



More information about the Vlmc-devel mailing list