Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
d00aca23
Commit
d00aca23
authored
Sep 30, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated xcb to use new VOUT_DISPLAY_CHANGE_DISPLAY_SIZE parameter.
parent
2663f4bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
modules/video_output/xcb/x11.c
modules/video_output/xcb/x11.c
+5
-3
modules/video_output/xcb/xvideo.c
modules/video_output/xcb/xvideo.c
+4
-0
No files found.
modules/video_output/xcb/x11.c
View file @
d00aca23
...
...
@@ -451,10 +451,12 @@ static int Control (vout_display_t *vd, int query, va_list ap)
{
const
vout_display_cfg_t
*
p_cfg
=
(
const
vout_display_cfg_t
*
)
va_arg
(
ap
,
const
vout_display_cfg_t
*
);
const
bool
is_forced
=
(
bool
)
va_arg
(
ap
,
int
);
if
(
vout_window_SetSize
(
p_sys
->
embed
,
p_cfg
->
display
.
width
,
p_cfg
->
display
.
height
))
if
(
is_forced
&&
vout_window_SetSize
(
p_sys
->
embed
,
p_cfg
->
display
.
width
,
p_cfg
->
display
.
height
))
return
VLC_EGENERIC
;
vout_display_place_t
place
;
...
...
modules/video_output/xcb/xvideo.c
View file @
d00aca23
...
...
@@ -670,6 +670,7 @@ static int Control (vout_display_t *vd, int query, va_list ap)
{
const
vout_display_cfg_t
*
cfg
;
const
video_format_t
*
source
;
bool
is_forced
;
if
(
query
==
VOUT_DISPLAY_CHANGE_SOURCE_ASPECT
||
query
==
VOUT_DISPLAY_CHANGE_SOURCE_CROP
)
...
...
@@ -681,10 +682,13 @@ static int Control (vout_display_t *vd, int query, va_list ap)
{
source
=
&
vd
->
source
;
cfg
=
(
const
vout_display_cfg_t
*
)
va_arg
(
ap
,
const
vout_display_cfg_t
*
);
if
(
query
==
VOUT_DISPLAY_CHANGE_DISPLAY_SIZE
)
is_forced
=
(
bool
)
va_arg
(
ap
,
int
);
}
/* */
if
(
query
==
VOUT_DISPLAY_CHANGE_DISPLAY_SIZE
&&
is_forced
&&
(
cfg
->
display
.
width
!=
vd
->
cfg
->
display
.
width
||
cfg
->
display
.
height
!=
vd
->
cfg
->
display
.
height
)
&&
vout_window_SetSize
(
p_sys
->
embed
,
...
...
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