Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
7f9999df
Commit
7f9999df
authored
Jun 02, 2008
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enforce --no-overlay option in SDL video output.
parent
2e2178f7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
69 additions
and
58 deletions
+69
-58
modules/video_output/sdl.c
modules/video_output/sdl.c
+69
-58
No files found.
modules/video_output/sdl.c
View file @
7f9999df
...
...
@@ -162,6 +162,8 @@ static int Open ( vlc_object_t *p_this )
return
VLC_ENOMEM
;
}
memset
(
p_vout
->
p_sys
,
0
,
sizeof
(
vout_sys_t
)
);
/* Check if SDL video module has been initialized */
if
(
SDL_WasInit
(
SDL_INIT_VIDEO
)
!=
0
)
{
...
...
@@ -762,6 +764,8 @@ static int OpenDisplay( vout_thread_t *p_vout )
char
*
psz_chroma
=
NULL
;
uint32_t
i_chroma
=
0
;
bool
b_overlay
=
config_GetInt
(
p_vout
,
"overlay"
);
/* Set main window's size */
#if SDL_VERSION_ATLEAST(1,2,10)
p_vout
->
p_sys
->
i_width
=
p_vout
->
b_fullscreen
?
p_vout
->
p_sys
->
i_desktop_width
:
...
...
@@ -813,6 +817,8 @@ static int OpenDisplay( vout_thread_t *p_vout )
}
}
if
(
b_overlay
)
{
/* Choose the chroma we will try first. */
do
{
...
...
@@ -877,11 +883,16 @@ static int OpenDisplay( vout_thread_t *p_vout )
SDL_CreateYUVOverlay
(
32
,
32
,
SDL_YUY2_OVERLAY
,
p_vout
->
p_sys
->
p_display
);
}
}
if
(
p_vout
->
p_sys
->
p_overlay
==
NULL
)
{
if
(
b_overlay
)
msg_Warn
(
p_vout
,
"no SDL overlay for 0x%.8x (%4.4s)"
,
p_vout
->
render
.
i_chroma
,
(
char
*
)
&
p_vout
->
render
.
i_chroma
);
p_vout
->
render
.
i_chroma
,
(
char
*
)
&
p_vout
->
render
.
i_chroma
);
else
msg_Warn
(
p_vout
,
"SDL overlay disabled by the user"
);
switch
(
p_vout
->
p_sys
->
p_display
->
format
->
BitsPerPixel
)
{
...
...
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