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
d70fb1f8
Commit
d70fb1f8
authored
Jan 07, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert [23969] because mutex aren't needed
parent
cfa722f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
14 deletions
+0
-14
modules/video_output/sdl.c
modules/video_output/sdl.c
+0
-14
No files found.
modules/video_output/sdl.c
View file @
d70fb1f8
...
...
@@ -72,8 +72,6 @@ struct vout_sys_t
vlc_bool_t
b_cursor_autohidden
;
mtime_t
i_lastmoved
;
mtime_t
i_lastpressed
;
/* to track dbl-clicks */
vlc_mutex_t
lock
;
};
/*****************************************************************************
...
...
@@ -156,8 +154,6 @@ static int Open ( vlc_object_t *p_this )
return
VLC_ENOMEM
;
}
vlc_mutex_init
(
p_vout
,
&
p_vout
->
p_sys
->
lock
);
/* Check if SDL video module has been initialized */
if
(
SDL_WasInit
(
SDL_INIT_VIDEO
)
!=
0
)
{
...
...
@@ -339,8 +335,6 @@ static void Close ( vlc_object_t *p_this )
CloseDisplay
(
p_vout
);
SDL_QuitSubSystem
(
SDL_INIT_VIDEO
);
vlc_mutex_destroy
(
&
p_vout
->
p_sys
->
lock
);
free
(
p_vout
->
p_sys
);
}
...
...
@@ -356,8 +350,6 @@ static int Manage( vout_thread_t *p_vout )
vlc_value_t
val
;
unsigned
int
i_width
,
i_height
,
i_x
,
i_y
;
vlc_mutex_lock
(
&
p_vout
->
p_sys
->
lock
);
/* Process events */
while
(
SDL_PollEvent
(
&
event
)
)
{
...
...
@@ -631,8 +623,6 @@ static int Manage( vout_thread_t *p_vout )
SDL_ShowCursor
(
0
);
}
vlc_mutex_unlock
(
&
p_vout
->
p_sys
->
lock
);
return
VLC_SUCCESS
;
}
...
...
@@ -712,8 +702,6 @@ static void Display( vout_thread_t *p_vout, picture_t *p_pic )
unsigned
int
x
,
y
,
w
,
h
;
SDL_Rect
disp
;
vlc_mutex_lock
(
&
p_vout
->
p_sys
->
lock
);
vout_PlacePicture
(
p_vout
,
p_vout
->
p_sys
->
i_width
,
p_vout
->
p_sys
->
i_height
,
&
x
,
&
y
,
&
w
,
&
h
);
disp
.
x
=
x
;
...
...
@@ -733,8 +721,6 @@ static void Display( vout_thread_t *p_vout, picture_t *p_pic )
SDL_DisplayYUVOverlay
(
p_pic
->
p_sys
->
p_overlay
,
&
disp
);
SDL_LockYUVOverlay
(
p_pic
->
p_sys
->
p_overlay
);
}
vlc_mutex_unlock
(
&
p_vout
->
p_sys
->
lock
);
}
/* following functions are local */
...
...
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