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
Steve Lhomme
VLC
Commits
9c221023
Commit
9c221023
authored
Aug 16, 2014
by
Rémi Denis-Courmont
Browse files
playlist: do not copy string solely for debug
parent
734a5055
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/playlist/thread.c
View file @
9c221023
...
@@ -225,17 +225,15 @@ static void PlayItem( playlist_t *p_playlist, playlist_item_t *p_item )
...
@@ -225,17 +225,15 @@ static void PlayItem( playlist_t *p_playlist, playlist_item_t *p_item )
/* TODO store art policy in playlist private data */
/* TODO store art policy in playlist private data */
char
*
psz_arturl
=
input_item_GetArtURL
(
p_input
);
char
*
psz_arturl
=
input_item_GetArtURL
(
p_input
);
char
*
psz_name
=
input_item_GetName
(
p_input
);
/* p_input->p_meta should not be null after a successful CreateThread */
/* p_input->p_meta should not be null after a successful CreateThread */
bool
b_has_art
=
!
EMPTY_STR
(
psz_arturl
);
bool
b_has_art
=
!
EMPTY_STR
(
psz_arturl
);
if
(
!
b_has_art
||
strncmp
(
psz_arturl
,
"attachment://"
,
13
)
)
if
(
!
b_has_art
||
strncmp
(
psz_arturl
,
"attachment://"
,
13
)
)
{
{
PL_DEBUG
(
"requesting art for
%s"
,
psz_name
);
PL_DEBUG
(
"requesting art for
new input thread"
);
libvlc_ArtRequest
(
p_playlist
->
p_libvlc
,
p_input
,
META_REQUEST_OPTION_NONE
);
libvlc_ArtRequest
(
p_playlist
->
p_libvlc
,
p_input
,
META_REQUEST_OPTION_NONE
);
}
}
free
(
psz_arturl
);
free
(
psz_arturl
);
free
(
psz_name
);
PL_UNLOCK
;
PL_UNLOCK
;
var_TriggerCallback
(
p_playlist
,
"activity"
);
var_TriggerCallback
(
p_playlist
,
"activity"
);
...
...
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