[vlc-commits] vout: initialize "scale" before "zoom" (refs #4027)
Rémi Denis-Courmont
git at videolan.org
Wed May 1 10:42:32 CEST 2013
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed May 1 11:40:33 2013 +0300| [049c418819ad500e5372de9c09fb4487f3593059] | committer: Rémi Denis-Courmont
vout: initialize "scale" before "zoom" (refs #4027)
The zoom callback depends on the scale variable...
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=049c418819ad500e5372de9c09fb4487f3593059
---
src/video_output/vout_intf.c | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/src/video_output/vout_intf.c b/src/video_output/vout_intf.c
index 825918c..4fb3266 100644
--- a/src/video_output/vout_intf.c
+++ b/src/video_output/vout_intf.c
@@ -162,6 +162,19 @@ void vout_IntfInit( vout_thread_t *p_vout )
var_Create( p_vout, "mouse-hide-timeout",
VLC_VAR_INTEGER | VLC_VAR_DOINHERIT );
+ /* Add variables to manage scaling video */
+ var_Create( p_vout, "autoscale", VLC_VAR_BOOL | VLC_VAR_DOINHERIT
+ | VLC_VAR_ISCOMMAND );
+ text.psz_string = _("Autoscale video");
+ var_Change( p_vout, "autoscale", VLC_VAR_SETTEXT, &text, NULL );
+ var_AddCallback( p_vout, "autoscale", ScalingCallback, NULL );
+
+ var_Create( p_vout, "scale", VLC_VAR_FLOAT | VLC_VAR_DOINHERIT
+ | VLC_VAR_ISCOMMAND );
+ text.psz_string = _("Scale factor");
+ var_Change( p_vout, "scale", VLC_VAR_SETTEXT, &text, NULL );
+ var_AddCallback( p_vout, "scale", ScalingCallback, NULL );
+
/* Zoom object var */
var_Create( p_vout, "zoom", VLC_VAR_FLOAT | VLC_VAR_ISCOMMAND |
VLC_VAR_HASCHOICE | VLC_VAR_DOINHERIT );
@@ -260,19 +273,6 @@ void vout_IntfInit( vout_thread_t *p_vout )
var_TriggerCallback( p_vout, "aspect-ratio" );
free( old_val.psz_string );
- /* Add variables to manage scaling video */
- var_Create( p_vout, "autoscale", VLC_VAR_BOOL | VLC_VAR_DOINHERIT
- | VLC_VAR_ISCOMMAND );
- text.psz_string = _("Autoscale video");
- var_Change( p_vout, "autoscale", VLC_VAR_SETTEXT, &text, NULL );
- var_AddCallback( p_vout, "autoscale", ScalingCallback, NULL );
-
- var_Create( p_vout, "scale", VLC_VAR_FLOAT | VLC_VAR_DOINHERIT
- | VLC_VAR_ISCOMMAND );
- text.psz_string = _("Scale factor");
- var_Change( p_vout, "scale", VLC_VAR_SETTEXT, &text, NULL );
- var_AddCallback( p_vout, "scale", ScalingCallback, NULL );
-
/* Add a variable to indicate if the window should be on top of others */
var_Create( p_vout, "video-on-top", VLC_VAR_BOOL | VLC_VAR_DOINHERIT
| VLC_VAR_ISCOMMAND );
More information about the vlc-commits
mailing list