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
2a5fa328
Commit
2a5fa328
authored
Jun 03, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec: use vlc_global_mutex
parent
e3c35026
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
18 deletions
+3
-18
include/vlc_avcodec.h
include/vlc_avcodec.h
+3
-5
src/libvlc.c
src/libvlc.c
+0
-12
src/libvlccore.sym
src/libvlccore.sym
+0
-1
No files found.
include/vlc_avcodec.h
View file @
2a5fa328
/*****************************************************************************
* vlc_avcodec.h: VLC thread support for FFMPEG/libavcodec
*****************************************************************************
* Copyright (C) 2009 Rémi Denis-Courmont
* Copyright (C) 2009
-2010
Rémi Denis-Courmont
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -21,16 +21,14 @@
#ifndef VLC_AVCODEC_H
# define VLC_AVCODEC_H 1
VLC_EXPORT
(
void
,
vlc_avcodec_mutex
,
(
bool
)
);
static
inline
void
vlc_avcodec_lock
(
void
)
{
vlc_
avcodec_mutex
(
true
);
vlc_
global_lock
(
VLC_AVCODEC_MUTEX
);
}
static
inline
void
vlc_avcodec_unlock
(
void
)
{
vlc_
avcodec_mutex
(
false
);
vlc_
global_unlock
(
VLC_AVCODEC_MUTEX
);
}
#endif
src/libvlc.c
View file @
2a5fa328
...
...
@@ -1967,15 +1967,3 @@ static int ConsoleWidth( void )
return
i_width
;
}
#include <vlc_avcodec.h>
void
vlc_avcodec_mutex
(
bool
acquire
)
{
static
vlc_mutex_t
lock
=
VLC_STATIC_MUTEX
;
if
(
acquire
)
vlc_mutex_lock
(
&
lock
);
else
vlc_mutex_unlock
(
&
lock
);
}
src/libvlccore.sym
View file @
2a5fa328
...
...
@@ -473,7 +473,6 @@ video_format_Setup
video_format_Print
video_splitter_Delete
video_splitter_New
vlc_avcodec_mutex
vlc_b64_decode
vlc_b64_decode_binary
vlc_b64_decode_binary_to_buffer
...
...
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