Default illegal parameters in TargetParam.
authorDiego Barrios Romero <eldruin@gmailcom>
Tue, 23 Feb 2010 01:23:27 +0000 (02:23 +0100)
committerDiego Barrios Romero <eldruin@gmailcom>
Tue, 23 Feb 2010 01:23:27 +0000 (02:23 +0100)
synfig-core/src/synfig/targetparam.h

index adf905d..05c815d 100644 (file)
@@ -33,7 +33,13 @@ namespace synfig {
 
 struct TargetParam
 {
-       TargetParam () { }
+       //! Default constructor
+       /*! Not valid default values, if they are not modified before
+        *  passing them to the target module, it would override them with
+        *  its own valid default settings.
+        */
+       TargetParam (): video_codec("none"), bitrate(-1) { }
+
        TargetParam (const std::string& Video_codec, int Bitrate):
                video_codec(Video_codec), bitrate(Bitrate)
        { }