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
4ca46b85
Commit
4ca46b85
authored
May 01, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vout: trigger zoom callback at startup (fixes #4027)
parent
049c4188
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
src/video_output/vout_intf.c
src/video_output/vout_intf.c
+9
-7
No files found.
src/video_output/vout_intf.c
View file @
4ca46b85
...
...
@@ -181,21 +181,23 @@ void vout_IntfInit( vout_thread_t *p_vout )
text
.
psz_string
=
_
(
"Zoom"
);
var_Change
(
p_vout
,
"zoom"
,
VLC_VAR_SETTEXT
,
&
text
,
NULL
);
var_Get
(
p_vout
,
"zoom"
,
&
old_val
);
old_val
.
f_float
=
var_GetFloat
(
p_vout
,
"zoom"
);
for
(
size_t
i
=
0
;
i
<
ARRAY_SIZE
(
p_zoom_values
);
i
++
)
{
if
(
old_val
.
f_float
==
p_zoom_values
[
i
].
f_value
)
var_Change
(
p_vout
,
"zoom"
,
VLC_VAR_DELCHOICE
,
&
old_val
,
NULL
);
val
.
f_float
=
p_zoom_values
[
i
].
f_value
;
text
.
psz_string
=
_
(
p_zoom_values
[
i
].
psz_label
);
text
.
psz_string
=
vlc_gettext
(
p_zoom_values
[
i
].
psz_label
);
/* FIXME: This DELCHOICE hack corrupts the the "zoom" variable value
* for a short time window. Same for "crop" and "aspect-ratio". */
if
(
old_val
.
f_float
==
val
.
f_float
)
var_Change
(
p_vout
,
"zoom"
,
VLC_VAR_DELCHOICE
,
&
old_val
,
NULL
);
var_Change
(
p_vout
,
"zoom"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
if
(
old_val
.
f_float
==
val
.
f_float
)
var_Change
(
p_vout
,
"zoom"
,
VLC_VAR_SETVALUE
,
&
old_val
,
NULL
);
}
var_Set
(
p_vout
,
"zoom"
,
old_val
);
/* Is this really needed? */
var_AddCallback
(
p_vout
,
"zoom"
,
ZoomCallback
,
NULL
);
var_TriggerCallback
(
p_vout
,
"zoom"
);
/* Crop offset vars */
var_Create
(
p_vout
,
"crop-left"
,
VLC_VAR_INTEGER
|
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