From 573a571d32fdbc60a726048cffd2ed412014c459 Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Tue, 23 Feb 2010 02:23:27 +0100 Subject: [PATCH] Default illegal parameters in TargetParam. --- synfig-core/src/synfig/targetparam.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/synfig-core/src/synfig/targetparam.h b/synfig-core/src/synfig/targetparam.h index adf905d..05c815d 100644 --- a/synfig-core/src/synfig/targetparam.h +++ b/synfig-core/src/synfig/targetparam.h @@ -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) { } -- 2.7.4