<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
git version control wrote:
<blockquote cite="mid:20090616100450.5814D101F21@skanda.videolan.org"
type="cite">
<pre wrap="">vlc | branch: 1.0-bugfix | Rémi Duraffort <a class="moz-txt-link-rfc2396E" href="mailto:ivoire@videolan.org"><ivoire@videolan.org></a> | Tue Jun 16 11:38:23 2009 +0200| [6d28f6deddc7596b7d0a6c0236e7ef81f4cacc07] | committer: Rémi Duraffort
Fix #2720: when deleting the current playing item we must ask the playlist to
reset the current status item.
</pre>
<blockquote type="cite">
<pre wrap=""><a class="moz-txt-link-freetext" href="http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6d28f6deddc7596b7d0a6c0236e7ef81f4cacc07">http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6d28f6deddc7596b7d0a6c0236e7ef81f4cacc07</a>
</pre>
</blockquote>
<pre wrap=""><!---->---
src/playlist/item.c | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/src/playlist/item.c b/src/playlist/item.c
index 122411e..e804027 100644
--- a/src/playlist/item.c
+++ b/src/playlist/item.c
@@ -899,10 +899,16 @@ 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 && b_stop )
+ if( get_current_status_item( p_playlist ) == p_item )
{
- playlist_Control( p_playlist, PLAYLIST_STOP, pl_Locked );
- msg_Info( p_playlist, "stopping playback" );
+ /* Stop it if we have to */
+ if( b_stop )
+ {
+ playlist_Control( p_playlist, PLAYLIST_STOP, pl_Locked );
+ msg_Info( p_playlist, "stopping playback" );
+ }
+ /* In any case, this item can't be the next one to be played ! */
+ set_current_status_item( p_playlist, NULL );
</pre>
</blockquote>
Finally fixed the old bug where zombie item can still playback?<br>
<blockquote cite="mid:20090616100450.5814D101F21@skanda.videolan.org"
type="cite">
<pre wrap=""> }
PL_DEBUG( "deleting item `%s'", p_item->p_input->psz_name );
_______________________________________________
vlc-devel mailing list
To unsubscribe or modify your subscription options:
<a class="moz-txt-link-freetext" href="http://mailman.videolan.org/listinfo/vlc-devel">http://mailman.videolan.org/listinfo/vlc-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>