[vlmc-devel] RendererSettings: Read AudioBitrate and VideoBitrate from the project

Yikai Lu git at videolan.org
Wed Apr 6 14:52:56 CEST 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Wed Apr  6 20:59:06 2016 +0900| [a31b756115d41d38c3bb1f18fe48267da276993c] | committer: Hugo Beauzée-Luyssen

RendererSettings: Read AudioBitrate and VideoBitrate from the project

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

> https://code.videolan.org/videolan/vlmc/commit/a31b756115d41d38c3bb1f18fe48267da276993c
---

 src/Gui/export/RendererSettings.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/Gui/export/RendererSettings.cpp b/src/Gui/export/RendererSettings.cpp
index 7a8959e..1a14a94 100644
--- a/src/Gui/export/RendererSettings.cpp
+++ b/src/Gui/export/RendererSettings.cpp
@@ -51,6 +51,8 @@ RendererSettings::RendererSettings( bool shareOnInternet )
     m_ui.width->setValue( project->width() );
     m_ui.height->setValue( project->height() );
     m_ui.fps->setValue( project->fps() );
+    m_ui.videoQuality->setValue( project->videoBitrate() );
+    m_ui.audioQuality->setValue( project->audioBitrate() );
 
     QCompleter* completer = new QCompleter( this );
     completer->setModel( new QDirModel( completer ) );
@@ -111,7 +113,7 @@ RendererSettings::updateVideoPreset( int index )
 void
 RendererSettings::accept()
 {
-    if ( width() <= 0 || height() <= 0 || fps() <= .0f )
+    if ( width() <= 0 || height() <= 0 || fps() <= .0f || audioBitrate() <= 0 || videoBitrate() <= 0 )
     {
         QMessageBox::warning( this, tr( "Invalid parameters" ),
                               tr( "Please enter valid rendering parameters" ) );



More information about the Vlmc-devel mailing list