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
0bb6445c
Commit
0bb6445c
authored
Sep 04, 2012
by
François Cartegnie
🤞
Browse files
Qt: MLItem: missing locks
parent
a3d24181
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/gui/qt4/components/playlist/ml_item.cpp
View file @
0bb6445c
...
...
@@ -178,12 +178,17 @@ QVariant MLItem::data( int column ) const
case
ML_SCORE
:
return
media
->
i_score
?
media
->
i_score
:
QVariant
();
case
ML_TITLE
:
{
vlc_mutex_lock
(
&
media
->
lock
);
qsz_return
=
qfu
(
media
->
psz_title
);
vlc_mutex_unlock
(
&
media
->
lock
);
/* If no title, return filename */
if
(
!
EMPTY_STR
(
media
->
psz_title
)
)
return
q
fu
(
media
->
psz_title
)
;
if
(
!
qsz_return
.
isEmpty
(
)
)
return
q
sz_return
;
else
{
vlc_mutex_lock
(
&
media
->
lock
);
QFileInfo
p_file
=
QFileInfo
(
qfu
(
media
->
psz_uri
)
);
vlc_mutex_unlock
(
&
media
->
lock
);
return
p_file
.
fileName
().
isEmpty
()
?
p_file
.
absoluteFilePath
()
:
p_file
.
fileName
();
}
...
...
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