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
31fd358e
Commit
31fd358e
authored
Oct 15, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vout: pass only a boolean to VOUT_DISPLAY_CHANGE_FULLSCREEN control
parent
83ea9ab5
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
15 additions
and
28 deletions
+15
-28
include/vlc_vout_display.h
include/vlc_vout_display.h
+1
-1
modules/video_output/caopengllayer.m
modules/video_output/caopengllayer.m
+1
-1
modules/video_output/ios2.m
modules/video_output/ios2.m
+1
-1
modules/video_output/kva.c
modules/video_output/kva.c
+2
-3
modules/video_output/msw/common.c
modules/video_output/msw/common.c
+3
-3
modules/video_output/sdl.c
modules/video_output/sdl.c
+5
-12
src/video_output/display.c
src/video_output/display.c
+2
-7
No files found.
include/vlc_vout_display.h
View file @
31fd358e
...
...
@@ -143,7 +143,7 @@ enum {
/* Ask the module to acknowledge/refuse the fullscreen state change after
* being requested (externally or by VOUT_DISPLAY_EVENT_FULLSCREEN */
VOUT_DISPLAY_CHANGE_FULLSCREEN
,
/*
const vout_display_cfg_t *p_cfg
*/
VOUT_DISPLAY_CHANGE_FULLSCREEN
,
/*
bool fs
*/
/* Ask the module to acknowledge/refuse the window management state change
* after being requested externally or by VOUT_DISPLAY_WINDOW_STATE */
...
...
modules/video_output/caopengllayer.m
View file @
31fd358e
...
...
@@ -300,7 +300,6 @@ static int Control (vout_display_t *vd, int query, va_list ap)
case
VOUT_DISPLAY_CHANGE_ZOOM
:
case
VOUT_DISPLAY_CHANGE_SOURCE_ASPECT
:
case
VOUT_DISPLAY_CHANGE_SOURCE_CROP
:
case
VOUT_DISPLAY_CHANGE_FULLSCREEN
:
{
const
vout_display_cfg_t
*
cfg
;
const
video_format_t
*
source
;
...
...
@@ -343,6 +342,7 @@ static int Control (vout_display_t *vd, int query, va_list ap)
assert
(
0
);
default:
msg_Err
(
vd
,
"Unhandled request %d"
,
query
);
case
VOUT_DISPLAY_CHANGE_FULLSCREEN
:
return
VLC_EGENERIC
;
}
...
...
modules/video_output/ios2.m
View file @
31fd358e
...
...
@@ -265,7 +265,6 @@ static int Control(vout_display_t *vd, int query, va_list ap)
case
VOUT_DISPLAY_HIDE_MOUSE
:
return
VLC_EGENERIC
;
case
VOUT_DISPLAY_CHANGE_FULLSCREEN
:
case
VOUT_DISPLAY_CHANGE_DISPLAY_FILLED
:
case
VOUT_DISPLAY_CHANGE_ZOOM
:
case
VOUT_DISPLAY_CHANGE_SOURCE_ASPECT
:
...
...
@@ -320,6 +319,7 @@ static int Control(vout_display_t *vd, int query, va_list ap)
assert
(
0
);
default:
msg_Err
(
vd
,
"Unknown request %d"
,
query
);
case
VOUT_DISPLAY_CHANGE_FULLSCREEN
:
return
VLC_EGENERIC
;
}
}
...
...
modules/video_output/kva.c
View file @
31fd358e
...
...
@@ -442,10 +442,9 @@ static int Control( vout_display_t *vd, int query, va_list args )
case
VOUT_DISPLAY_CHANGE_FULLSCREEN
:
{
const
vout_display_cfg_t
*
cfg
=
va_arg
(
args
,
const
vout_display_cfg_t
*
);
bool
fs
=
va_arg
(
args
,
int
);
WinPostMsg
(
sys
->
client
,
WM_VLC_FULLSCREEN_CHANGE
,
MPFROMLONG
(
cfg
->
is_fullscreen
),
0
);
WinPostMsg
(
sys
->
client
,
WM_VLC_FULLSCREEN_CHANGE
,
MPFROMLONG
(
fs
),
0
);
return
VLC_SUCCESS
;
}
...
...
modules/video_output/msw/common.c
View file @
31fd358e
...
...
@@ -607,9 +607,9 @@ int CommonControl(vout_display_t *vd, int query, va_list args)
sys
->
is_on_top
=
is_on_top
;
return
VLC_SUCCESS
;
}
case
VOUT_DISPLAY_CHANGE_FULLSCREEN
:
{
/* const vout_display_cfg_t *p_cfg */
const
vout_display_cfg_t
*
cfg
=
va_arg
(
args
,
const
vout_display_cfg_t
*
);
if
(
CommonControlSetFullscreen
(
vd
,
cfg
->
is_fullscreen
))
case
VOUT_DISPLAY_CHANGE_FULLSCREEN
:
{
bool
fs
=
va_arg
(
args
,
int
);
if
(
CommonControlSetFullscreen
(
vd
,
fs
))
return
VLC_EGENERIC
;
UpdateRects
(
vd
,
NULL
,
NULL
,
false
);
return
VLC_SUCCESS
;
...
...
modules/video_output/sdl.c
View file @
31fd358e
...
...
@@ -494,24 +494,17 @@ static int Control(vout_display_t *vd, int query, va_list args)
return
VLC_SUCCESS
;
}
case
VOUT_DISPLAY_CHANGE_FULLSCREEN
:
{
vout_display_cfg_t
cfg
=
*
va_arg
(
args
,
const
vout_display_cfg_t
*
);
bool
fs
=
va_arg
(
args
,
int
);
/* Fix flags */
sys
->
display_flags
&=
~
(
SDL_FULLSCREEN
|
SDL_RESIZABLE
);
sys
->
display_flags
|=
cfg
.
is_fullscreen
?
SDL_FULLSCREEN
:
SDL_RESIZABLE
;
sys
->
display_flags
|=
fs
?
SDL_FULLSCREEN
:
SDL_RESIZABLE
;
if
(
cfg
.
is_fullscreen
)
{
cfg
.
display
.
width
=
sys
->
desktop_width
;
cfg
.
display
.
height
=
sys
->
desktop_height
;
}
if
(
sys
->
overlay
)
{
sys
->
display
=
SDL_SetVideoMode
(
cfg
.
display
.
width
,
cfg
.
display
.
height
,
if
(
sys
->
overlay
)
sys
->
display
=
SDL_SetVideoMode
(
sys
->
desktop_width
,
sys
->
desktop_height
,
sys
->
display_bpp
,
sys
->
display_flags
);
vout_display_PlacePicture
(
&
sys
->
place
,
&
vd
->
source
,
&
cfg
,
!
sys
->
overlay
);
}
vout_display_SendEventDisplaySize
(
vd
,
cfg
.
display
.
width
,
cfg
.
display
.
height
);
vout_display_SendEventDisplaySize
(
vd
,
sys
->
desktop_width
,
sys
->
desktop_height
);
return
VLC_SUCCESS
;
}
case
VOUT_DISPLAY_CHANGE_ZOOM
:
...
...
src/video_output/display.c
View file @
31fd358e
...
...
@@ -858,13 +858,8 @@ bool vout_ManageDisplay(vout_display_t *vd, bool allow_reset_pictures)
/* */
if
(
ch_fullscreen
)
{
vout_display_cfg_t
cfg
=
osys
->
cfg
;
cfg
.
is_fullscreen
=
is_fullscreen
;
cfg
.
display
.
width
=
cfg
.
is_fullscreen
?
0
:
osys
->
width_saved
;
cfg
.
display
.
height
=
cfg
.
is_fullscreen
?
0
:
osys
->
height_saved
;
if
(
vout_display_Control
(
vd
,
VOUT_DISPLAY_CHANGE_FULLSCREEN
,
&
cfg
)
==
VLC_SUCCESS
)
{
if
(
vout_display_Control
(
vd
,
VOUT_DISPLAY_CHANGE_FULLSCREEN
,
is_fullscreen
)
==
VLC_SUCCESS
)
{
osys
->
cfg
.
is_fullscreen
=
is_fullscreen
;
if
(
!
is_fullscreen
)
...
...
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