[vlc-commits] motion: don't override permanent configuration

Pierre Ynard git at videolan.org
Thu Oct 11 22:27:33 CEST 2012


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Thu Oct 11 22:26:03 2012 +0200| [9de638bba344c06fdc56e69f43ac7a76438d51e6] | committer: Pierre Ynard

motion: don't override permanent configuration

Use a variable on the vout object instead to control the transform filter

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9de638bba344c06fdc56e69f43ac7a76438d51e6
---

 modules/control/motion.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/control/motion.c b/modules/control/motion.c
index 41344e5..c945df9 100644
--- a/modules/control/motion.c
+++ b/modules/control/motion.c
@@ -163,9 +163,9 @@ static void RunIntf( intf_thread_t *p_intf )
                 p_vout = input_GetVout( p_input );
                 if( p_vout )
                 {
-#warning FIXME: do not override the permanent configuration!
 #warning FIXME: transform-type does not exist anymore
-                    config_PutPsz( p_vout, "transform-type", psz_type );
+                    var_Create( p_vout, "transform-type", VLC_VAR_STRING );
+                    var_SetString( p_vout, "transform-type", psz_type );
                     var_SetString( p_vout, "video-filter", psz_filter );
                     vlc_object_release( p_vout );
                 }



More information about the vlc-commits mailing list