[vlc-commits] playlist/item: playlist_AddInput: merge declaration + initialization
Filip Roséen
git at videolan.org
Thu May 18 17:51:20 CEST 2017
vlc | branch: master | Filip Roséen <filip at atch.se> | Thu May 18 12:01:10 2017 +0200| [1ecad0ab40bf05c22fa3d7023afe336d36881d50] | committer: Rémi Denis-Courmont
playlist/item: playlist_AddInput: merge declaration + initialization
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1ecad0ab40bf05c22fa3d7023afe336d36881d50
---
src/playlist/item.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/playlist/item.c b/src/playlist/item.c
index 24c29b6677..b299837f02 100644
--- a/src/playlist/item.c
+++ b/src/playlist/item.c
@@ -476,11 +476,9 @@ int playlist_AddExt( playlist_t *p_playlist, const char * psz_uri,
int playlist_AddInput( playlist_t* p_playlist, input_item_t *p_input,
bool play_now, bool b_playlist )
{
- playlist_item_t *item;
-
PL_LOCK;
- item = b_playlist ? p_playlist->p_playing
- : p_playlist->p_media_library;
+ playlist_item_t *item = b_playlist ? p_playlist->p_playing
+ : p_playlist->p_media_library;
item = playlist_NodeAddInput( p_playlist, p_input, item, PLAYLIST_END );
More information about the vlc-commits
mailing list