[vlmc-devel] commit: ProjectManager: Adding boundaries for FPS setting ( =?UTF-8?Q?Hugo=20Beauz=C3=A9e=2DLuyssen?==?UTF-8?Q?=20?=)

git at videolan.org git at videolan.org
Sun Dec 5 21:29:12 CET 2010


vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Sun Dec  5 19:20:39 2010 +0100| [0d4a8cf223cdd21242959fd0a23ac5548c1f7d8f] | committer: Hugo Beauzée-Luyssen 

ProjectManager: Adding boundaries for FPS setting

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=0d4a8cf223cdd21242959fd0a23ac5548c1f7d8f
---

 src/Project/ProjectManager.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/Project/ProjectManager.cpp b/src/Project/ProjectManager.cpp
index 0934c3a..5a098c8 100644
--- a/src/Project/ProjectManager.cpp
+++ b/src/Project/ProjectManager.cpp
@@ -48,9 +48,10 @@ ProjectManager::ProjectManager() : m_projectFile( NULL ), m_needSave( false )
     QSettings s;
     m_recentsProjects = s.value( "RecentsProjects" ).toStringList();
 
-    VLMC_CREATE_PROJECT_DOUBLE( "video/VLMCOutputFPS", 29.97,
+    SettingValue    *fps = VLMC_CREATE_PROJECT_DOUBLE( "video/VLMCOutputFPS", 29.97,
                                 QT_TRANSLATE_NOOP( "PreferenceWidget", "Output video FPS" ),
                                 QT_TRANSLATE_NOOP( "PreferenceWidget", "Frame Per Second used when previewing and rendering the project" ) );
+    fps->setLimits( 0.1, 120.0 );
     SettingValue    *width = VLMC_CREATE_PROJECT_VAR( SettingValue::Int, "video/VideoProjectWidth", 480,
                              QT_TRANSLATE_NOOP( "PreferenceWidget", "Video width" ),
                              QT_TRANSLATE_NOOP( "PreferenceWidget", "Width resolution of the output video" ),



More information about the Vlmc-devel mailing list