[vlc-commits] playlist: fix error in [874efde6]
Jean-Baptiste Kempf
git at videolan.org
Sun May 22 01:44:33 CEST 2011
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun May 22 01:39:12 2011 +0200| [7376fd3b29c4a2ae146b024f2b62148a2b21fa23] | committer: Jean-Baptiste Kempf
playlist: fix error in [874efde6]
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7376fd3b29c4a2ae146b024f2b62148a2b21fa23
---
src/playlist/engine.c | 2 +-
src/playlist/item.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/playlist/engine.c b/src/playlist/engine.c
index 4da5f8e..61b610b 100644
--- a/src/playlist/engine.c
+++ b/src/playlist/engine.c
@@ -384,7 +384,7 @@ static void VariablesInit( playlist_t *p_playlist )
var_SetBool( p_playlist, "intf-change", true );
var_Create( p_playlist, "item-change", VLC_VAR_ADDRESS );
- var_Create( p_playlist, "leaf-to-parent", VLC_VAR_ADDRESS );
+ var_Create( p_playlist, "leaf-to-parent", VLC_VAR_INTEGER );
var_Create( p_playlist, "playlist-item-deleted", VLC_VAR_INTEGER );
var_SetInteger( p_playlist, "playlist-item-deleted", -1 );
diff --git a/src/playlist/item.c b/src/playlist/item.c
index faf3191..29940fc 100644
--- a/src/playlist/item.c
+++ b/src/playlist/item.c
@@ -126,7 +126,7 @@ static void input_item_add_subitem_tree ( const vlc_event_t * p_event,
pos,
b_flat );
- if( !b_flat ) var_SetAddress( p_playlist, "leaf-to-parent", p_item->i_id );
+ if( !b_flat ) var_SetInteger( p_playlist, "leaf-to-parent", p_item->i_id );
//control playback only if it was the current playing item that got subitems
if( b_current )
More information about the vlc-commits
mailing list