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
8ae8abfe
Commit
8ae8abfe
authored
Oct 12, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vout: pass window state control directly to the window
parent
ef6353b6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
14 deletions
+9
-14
include/vlc_vout_wrapper.h
include/vlc_vout_wrapper.h
+0
-1
src/video_output/display.c
src/video_output/display.c
+0
-12
src/video_output/video_output.c
src/video_output/video_output.c
+9
-1
No files found.
include/vlc_vout_wrapper.h
View file @
8ae8abfe
...
...
@@ -87,7 +87,6 @@ VLC_API bool vout_ManageDisplay(vout_display_t *, bool allow_reset_pictures);
VLC_API
void
vout_SetDisplayFullscreen
(
vout_display_t
*
,
bool
is_fullscreen
);
VLC_API
void
vout_SetDisplayFilled
(
vout_display_t
*
,
bool
is_filled
);
VLC_API
void
vout_SetDisplayZoom
(
vout_display_t
*
,
unsigned
num
,
unsigned
den
);
void
vout_SetWindowState
(
vout_display_t
*
,
unsigned
state
);
VLC_API
void
vout_SetDisplayAspect
(
vout_display_t
*
,
unsigned
dar_num
,
unsigned
dar_den
);
VLC_API
void
vout_SetDisplayCrop
(
vout_display_t
*
,
unsigned
crop_num
,
unsigned
crop_den
,
unsigned
left
,
unsigned
top
,
int
right
,
int
bottom
);
...
...
src/video_output/display.c
View file @
8ae8abfe
...
...
@@ -1222,18 +1222,6 @@ void vout_SetDisplayZoom(vout_display_t *vd, unsigned num, unsigned den)
}
}
void
vout_SetWindowState
(
vout_display_t
*
vd
,
unsigned
state
)
{
vout_display_owner_sys_t
*
osys
=
vd
->
owner
.
sys
;
vlc_mutex_lock
(
&
osys
->
lock
);
if
(
osys
->
wm_state
!=
state
)
{
osys
->
ch_wm_state
=
true
;
osys
->
wm_state
=
state
;
}
vlc_mutex_unlock
(
&
osys
->
lock
);
}
void
vout_SetDisplayAspect
(
vout_display_t
*
vd
,
unsigned
dar_num
,
unsigned
dar_den
)
{
vout_display_owner_sys_t
*
osys
=
vd
->
owner
.
sys
;
...
...
src/video_output/video_output.c
View file @
8ae8abfe
...
...
@@ -1265,7 +1265,15 @@ static void ThreadChangeFullscreen(vout_thread_t *vout, bool fullscreen)
static
void
ThreadChangeWindowState
(
vout_thread_t
*
vout
,
unsigned
state
)
{
vout_SetWindowState
(
vout
->
p
->
display
.
vd
,
state
);
vout_window_t
*
window
=
vout
->
p
->
window
;
if
(
window
!=
NULL
)
vout_window_SetState
(
window
,
state
);
else
if
(
vout
->
p
->
display
.
vd
!=
NULL
)
/* FIXME: remove this event, fix MSW and OS/2 window providers */
vout_display_SendEvent
(
vout
->
p
->
display
.
vd
,
VOUT_DISPLAY_EVENT_WINDOW_STATE
,
state
);
}
static
void
ThreadChangeDisplayFilled
(
vout_thread_t
*
vout
,
bool
is_filled
)
...
...
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