Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
049c4188
Commit
049c4188
authored
May 01, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vout: initialize "scale" before "zoom" (refs #4027)
The zoom callback depends on the scale variable...
parent
6bd7c460
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
src/video_output/vout_intf.c
src/video_output/vout_intf.c
+13
-13
No files found.
src/video_output/vout_intf.c
View file @
049c4188
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment