Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
2a5fa328
Commit
2a5fa328
authored
Jun 03, 2010
by
Rémi Denis-Courmont
Browse files
avcodec: use vlc_global_mutex
parent
e3c35026
Changes
3
Hide whitespace changes
Inline
Side-by-side
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
Supports
Markdown
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