Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
3fae03b3
Commit
3fae03b3
authored
Feb 16, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed unused field and clean up (playlist).
parent
8a163fd8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
24 deletions
+15
-24
include/vlc_playlist.h
include/vlc_playlist.h
+2
-3
src/playlist/item.c
src/playlist/item.c
+13
-21
No files found.
include/vlc_playlist.h
View file @
3fae03b3
...
...
@@ -188,9 +188,8 @@ struct playlist_t
/** Helper to add an item */
struct
playlist_add_t
{
int
i_node
;
int
i_item
;
int
i_position
;
int
i_node
;
/**< Playist id of the parent node */
int
i_item
;
/**< Playist id of the playlist_item_t */
};
enum
...
...
src/playlist/item.c
View file @
3fae03b3
...
...
@@ -775,22 +775,21 @@ int playlist_TreeMove( playlist_t * p_playlist, playlist_item_t *p_item,
void
playlist_SendAddNotify
(
playlist_t
*
p_playlist
,
int
i_item_id
,
int
i_node_id
,
bool
b_signal
)
{
vlc_value_t
val
;
playlist_private_t
*
p_sys
=
pl_priv
(
p_playlist
)
;
PL_ASSERT_LOCKED
;
playlist_add_t
*
p_add
=
(
playlist_add_t
*
)
malloc
(
sizeof
(
playlist_add_t
)
);
if
(
!
p_add
)
return
;
p_add
->
i_item
=
i_item_id
;
p_add
->
i_node
=
i_node_id
;
val
.
p_address
=
p_add
;
pl_priv
(
p_playlist
)
->
b_reset_currently_playing
=
true
;
p_sys
->
b_reset_currently_playing
=
true
;
if
(
b_signal
)
vlc_cond_signal
(
&
pl_priv
(
p_playlist
)
->
signal
);
vlc_cond_signal
(
&
p_sys
->
signal
);
playlist_add_t
add
;
add
.
i_item
=
i_item_id
;
add
.
i_node
=
i_node_id
;
vlc_value_t
val
;
val
.
p_address
=
&
add
;
var_Set
(
p_playlist
,
"playlist-item-append"
,
val
);
free
(
p_add
);
}
/***************************************************************************
...
...
@@ -900,17 +899,10 @@ static int DeleteInner( playlist_t * p_playlist, playlist_item_t *p_item,
ARRAY_REMOVE
(
p_playlist
->
items
,
i
);
/* Check if it is the current item */
if
(
get_current_status_item
(
p_playlist
)
==
p_item
)
if
(
get_current_status_item
(
p_playlist
)
==
p_item
&&
b_stop
)
{
/* Hack we don't call playlist_Control for lock reasons */
if
(
b_stop
)
{
pl_priv
(
p_playlist
)
->
request
.
i_status
=
PLAYLIST_STOPPED
;
pl_priv
(
p_playlist
)
->
request
.
b_request
=
true
;
pl_priv
(
p_playlist
)
->
request
.
p_item
=
NULL
;
msg_Info
(
p_playlist
,
"stopping playback"
);
vlc_cond_signal
(
&
pl_priv
(
p_playlist
)
->
signal
);
}
playlist_Control
(
p_playlist
,
PLAYLIST_STOP
,
pl_Locked
);
msg_Info
(
p_playlist
,
"stopping playback"
);
}
PL_DEBUG
(
"deleting item `%s'"
,
p_item
->
p_input
->
psz_name
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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