Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
b7b3386b
Commit
b7b3386b
authored
Jan 07, 2001
by
Pierre Baillet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NoSEGfault Kl�dge added.
parent
dd3ca6f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
plugins/sdl/vout_sdl.c
plugins/sdl/vout_sdl.c
+8
-6
No files found.
plugins/sdl/vout_sdl.c
View file @
b7b3386b
...
@@ -221,7 +221,7 @@ void vout_SDLDisplay( vout_thread_t *p_vout )
...
@@ -221,7 +221,7 @@ void vout_SDLDisplay( vout_thread_t *p_vout )
SDL_Flip
(
p_vout
->
p_sys
->
p_display
);
SDL_Flip
(
p_vout
->
p_sys
->
p_display
);
/* Swap buffers and change write frame */
/* Swap buffers and change write frame */
SDL_LockSurface
(
p_vout
->
p_sys
->
p_display
);
//
SDL_LockSurface ( p_vout->p_sys->p_display );
}
}
}
}
else
else
...
@@ -396,19 +396,21 @@ static int SDLOpenDisplay( vout_thread_t *p_vout )
...
@@ -396,19 +396,21 @@ static int SDLOpenDisplay( vout_thread_t *p_vout )
*****************************************************************************/
*****************************************************************************/
static
void
SDLCloseDisplay
(
vout_thread_t
*
p_vout
)
static
void
SDLCloseDisplay
(
vout_thread_t
*
p_vout
)
{
{
if
(
p_vout
->
p_sys
->
p_display
)
/*
if( p_vout->p_sys->p_display != NULL )
{
{
p_vout->p_sys->b_must_acquire = 0;
p_vout->p_sys->b_must_acquire = 0;
if
(
p_vout
->
p_sys
->
p_overlay
)
if( p_vout->p_sys->p_overlay
!= NULL
)
{
{
SDL_FreeYUVOverlay(p_vout->p_sys->p_overlay);
SDL_FreeYUVOverlay(p_vout->p_sys->p_overlay);
p_vout->p_sys->p_overlay = NULL;
p_vout->p_sys->p_overlay = NULL;
}
}
SDL_UnlockSurface
(
p_vout
->
p_sys
->
p_display
);
SDL_FreeSurface( p_vout->p_sys->p_display );
SDL_FreeSurface( p_vout->p_sys->p_display );
p_vout->p_sys->p_display = NULL;
p_vout->p_sys->p_display = NULL;
}
}
*/
SDL_Quit
();
SDL_Quit
();
/* Prevents from cleaning, but prevents from SEGfaulting */
}
}
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