Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
8675d26c
Commit
8675d26c
authored
Oct 24, 2010
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taglib is not thread-safe
Fix ticket #3958
parent
2ad5d811
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
modules/meta_engine/taglib.cpp
modules/meta_engine/taglib.cpp
+4
-0
No files found.
modules/meta_engine/taglib.cpp
View file @
8675d26c
...
...
@@ -77,6 +77,8 @@
#include <textidentificationframe.h>
#include <uniquefileidentifierframe.h>
// taglib is not thread safe
static
vlc_mutex_t
taglib_lock
=
VLC_STATIC_MUTEX
;
// Local functions
static
int
ReadMeta
(
vlc_object_t
*
);
...
...
@@ -363,6 +365,7 @@ static void ReadMetaFromMP4( MP4::Tag* tag, demux_t *p_demux, demux_meta_t *p_de
*/
static
int
ReadMeta
(
vlc_object_t
*
p_this
)
{
vlc_mutex_locker
locker
(
&
taglib_lock
);
demux_meta_t
*
p_demux_meta
=
(
demux_meta_t
*
)
p_this
;
demux_t
*
p_demux
=
p_demux_meta
->
p_demux
;
vlc_meta_t
*
p_meta
;
...
...
@@ -585,6 +588,7 @@ static void WriteMetaToXiph( Ogg::XiphComment* tag, input_item_t* p_item )
static
int
WriteMeta
(
vlc_object_t
*
p_this
)
{
vlc_mutex_locker
locker
(
&
taglib_lock
);
meta_export_t
*
p_export
=
(
meta_export_t
*
)
p_this
;
input_item_t
*
p_item
=
p_export
->
p_item
;
FileRef
f
;
...
...
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