Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
6e9f6517
Commit
6e9f6517
authored
Nov 26, 2012
by
Rémi Denis-Courmont
Browse files
playlist: remove "item-current" variable
parent
6b772873
Changes
3
Hide whitespace changes
Inline
Side-by-side
include/vlc_playlist.h
View file @
6e9f6517
...
...
@@ -102,7 +102,6 @@ TYPEDEF_ARRAY(playlist_item_t*, playlist_item_array_t)
*
* - "item-change": It will contain the input_item_t->i_id of a changed input
* item monitored by the playlist.
* - "item-current": It will contain a input_item_t->i_id of the current
* item being played.
*
* - "playlist-item-append": It will contain a pointer to a playlist_add_t.
...
...
src/playlist/engine.c
View file @
6e9f6517
...
...
@@ -422,7 +422,6 @@ static void VariablesInit( playlist_t *p_playlist )
var_Create
(
p_playlist
,
"playlist-item-append"
,
VLC_VAR_ADDRESS
);
var_Create
(
p_playlist
,
"item-current"
,
VLC_VAR_ADDRESS
);
var_Create
(
p_playlist
,
"input-current"
,
VLC_VAR_ADDRESS
);
var_Create
(
p_playlist
,
"activity"
,
VLC_VAR_VOID
);
...
...
src/playlist/thread.c
View file @
6e9f6517
...
...
@@ -268,9 +268,7 @@ static int PlayItem( playlist_t *p_playlist, playlist_item_t *p_item )
free
(
psz_arturl
);
free
(
psz_name
);
}
/* FIXME: this is not safe !!*/
PL_UNLOCK
;
var_SetAddress
(
p_playlist
,
"item-current"
,
p_input
);
var_TriggerCallback
(
p_playlist
,
"activity"
);
PL_LOCK
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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