Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
6bae19b4
Commit
6bae19b4
authored
May 16, 2018
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
display: pull window type checking
parent
3cce1e76
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
13 deletions
+11
-13
src/video_output/display.c
src/video_output/display.c
+8
-3
src/video_output/display.h
src/video_output/display.h
+1
-1
src/video_output/video_output.c
src/video_output/video_output.c
+2
-9
No files found.
src/video_output/display.c
View file @
6bae19b4
...
...
@@ -638,9 +638,14 @@ static void VoutDisplayEvent(vout_display_t *vd, int event, va_list args)
static
vout_window_t
*
VoutDisplayNewWindow
(
vout_display_t
*
vd
,
unsigned
type
)
{
vout_display_owner_sys_t
*
osys
=
vd
->
owner
.
sys
;
vout_window_t
*
window
=
vout_NewDisplayWindow
(
osys
->
vout
,
type
);
if
(
window
!=
NULL
)
vout_display_window_Attach
(
window
,
vd
);
vout_window_t
*
window
=
vout_NewDisplayWindow
(
osys
->
vout
);
if
(
window
==
NULL
)
return
NULL
;
if
(
type
!=
VOUT_WINDOW_TYPE_INVALID
&&
type
!=
window
->
type
)
return
NULL
;
vout_display_window_Attach
(
window
,
vd
);
return
window
;
}
...
...
src/video_output/display.h
View file @
6bae19b4
...
...
@@ -33,7 +33,7 @@ vout_display_t *vout_NewSplitter(vout_thread_t *vout,
/* FIXME should not be there */
void
vout_SendDisplayEventMouse
(
vout_thread_t
*
,
const
vlc_mouse_t
*
);
vout_window_t
*
vout_NewDisplayWindow
(
vout_thread_t
*
,
unsigned
type
);
vout_window_t
*
vout_NewDisplayWindow
(
vout_thread_t
*
);
void
vout_DeleteDisplayWindow
(
vout_thread_t
*
,
vout_window_t
*
);
void
vout_SetDisplayWindowSize
(
vout_thread_t
*
,
unsigned
,
unsigned
);
...
...
src/video_output/video_output.c
View file @
6bae19b4
...
...
@@ -607,17 +607,10 @@ static void VoutGetDisplayCfg(vout_thread_t *vout, vout_display_cfg_t *cfg, cons
cfg
->
align
.
vertical
=
VOUT_DISPLAY_ALIGN_BOTTOM
;
}
vout_window_t
*
vout_NewDisplayWindow
(
vout_thread_t
*
vout
,
unsigned
type
)
vout_window_t
*
vout_NewDisplayWindow
(
vout_thread_t
*
vout
)
{
vout_window_t
*
window
=
vout
->
p
->
window
;
assert
(
vout
->
p
->
splitter_name
==
NULL
);
if
(
window
==
NULL
)
return
NULL
;
if
(
type
!=
VOUT_WINDOW_TYPE_INVALID
&&
type
!=
window
->
type
)
return
NULL
;
return
window
;
return
vout
->
p
->
window
;
}
void
vout_DeleteDisplayWindow
(
vout_thread_t
*
vout
,
vout_window_t
*
window
)
...
...
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