[vlc-devel] commit: Simplify ( Rémi Denis-Courmont )
git version control
git at videolan.org
Wed Jun 4 20:16:11 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Wed Jun 4 21:12:07 2008 +0300| [bed1fe1b898a0721a58461fe7c97f0eb376ac1d2]
Simplify
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bed1fe1b898a0721a58461fe7c97f0eb376ac1d2
---
src/playlist/control.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/src/playlist/control.c b/src/playlist/control.c
index ac44286..24393b1 100644
--- a/src/playlist/control.c
+++ b/src/playlist/control.c
@@ -463,7 +463,6 @@ playlist_item_t * playlist_NextItem( playlist_t *p_playlist )
*/
int playlist_PlayItem( playlist_t *p_playlist, playlist_item_t *p_item )
{
- vlc_value_t val;
input_item_t *p_input = p_item->p_input;
int i_activity = var_GetInteger( p_playlist, "activity" ) ;
@@ -508,9 +507,8 @@ int playlist_PlayItem( playlist_t *p_playlist, playlist_item_t *p_item )
free( psz_name );
}
- val.i_int = p_input->i_id;
PL_UNLOCK;
- var_Set( p_playlist, "playlist-current", val );
+ var_SetInteger( p_playlist, "playlist-current", p_input->i_id );
PL_LOCK;
return VLC_SUCCESS;
More information about the vlc-devel
mailing list