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
b207b8f8
Commit
b207b8f8
authored
Nov 30, 2000
by
Pierre Baillet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
. Fixed a segfault
. Fixed a SDL API change about clipping (?).
parent
9bc87bff
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
plugins/sdl/vout_sdl.c
plugins/sdl/vout_sdl.c
+3
-7
No files found.
plugins/sdl/vout_sdl.c
View file @
b207b8f8
...
...
@@ -120,7 +120,6 @@ void vout_SDLEnd( vout_thread_t *p_vout )
{
SDL_UnlockSurface
(
p_vout
->
p_sys
->
p_display
);
}
free
(
p_vout
->
p_sys
);
}
/*****************************************************************************
...
...
@@ -194,7 +193,6 @@ void vout_SDLDisplay( vout_thread_t *p_vout )
*****************************************************************************/
static
int
SDLOpenDisplay
(
vout_thread_t
*
p_vout
,
char
*
psz_display
,
void
*
p_data
)
{
SDL_Rect
clipping_rect
;
/* Initialize library */
if
(
SDL_Init
(
SDL_INIT_VIDEO
)
<
0
)
...
...
@@ -258,11 +256,9 @@ static int SDLOpenDisplay( vout_thread_t *p_vout, char *psz_display, void *p_dat
*/
/* Set clipping for text */
clipping_rect
.
x
=
0
;
clipping_rect
.
y
=
0
;
clipping_rect
.
w
=
p_vout
->
p_sys
->
p_display
->
w
;
clipping_rect
.
h
=
p_vout
->
p_sys
->
p_display
->
h
;
SDL_SetClipRect
(
p_vout
->
p_sys
->
p_display
,
&
clipping_rect
);
SDL_SetClipping
(
p_vout
->
p_sys
->
p_display
,
0
,
0
,
p_vout
->
p_sys
->
p_display
->
w
,
p_vout
->
p_sys
->
p_display
->
h
);
...
...
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