[vlc-commits] playlist: use intermediate variable
Rémi Denis-Courmont
git at videolan.org
Sun May 14 18:39:54 CEST 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun May 14 18:28:44 2017 +0300| [41ecadd25d5e8e64d3ef878e5b2936209239fdae] | committer: Rémi Denis-Courmont
playlist: use intermediate variable
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=41ecadd25d5e8e64d3ef878e5b2936209239fdae
---
src/playlist/item.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/playlist/item.c b/src/playlist/item.c
index 33f3d8bea5..8d27b0fe57 100644
--- a/src/playlist/item.c
+++ b/src/playlist/item.c
@@ -717,18 +717,18 @@ static void playlist_Preparse( playlist_t *p_playlist,
playlist_item_t *p_item )
{
playlist_private_t *sys = pl_priv(p_playlist);
+ input_item_t *input = p_item->p_input;
PL_ASSERT_LOCKED;
/* Preparse if no artist/album info, and hasn't been preparsed already
and if user has some preparsing option (auto-preparse variable)
enabled*/
- char *psz_artist = input_item_GetArtist( p_item->p_input );
- char *psz_album = input_item_GetAlbum( p_item->p_input );
+ char *psz_artist = input_item_GetArtist( input );
+ char *psz_album = input_item_GetAlbum( input );
- if( sys->b_preparse && !input_item_IsPreparsed( p_item->p_input )
+ if( sys->b_preparse && !input_item_IsPreparsed( input )
&& (EMPTY_STR(psz_artist) || EMPTY_STR(psz_album)) )
- libvlc_MetadataRequest( p_playlist->obj.libvlc, p_item->p_input, 0, -1,
- p_item );
+ libvlc_MetadataRequest( p_playlist->obj.libvlc, input, 0, -1, p_item );
free( psz_artist );
free( psz_album );
}
More information about the vlc-commits
mailing list