[vlc-devel] commit: Don't yield the playlist object when it's dead already ( Rafaël Carré )
git version control
git at videolan.org
Sun Mar 30 20:50:32 CEST 2008
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Sun Mar 30 20:50:59 2008 +0200| [807116e6177e2f4120446c050867eea34c069123]
Don't yield the playlist object when it's dead already
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=807116e6177e2f4120446c050867eea34c069123
---
src/input/control.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/input/control.c b/src/input/control.c
index 3b6af5d..210469d 100644
--- a/src/input/control.c
+++ b/src/input/control.c
@@ -598,7 +598,10 @@ int input_vaControl( input_thread_t *p_input, int i_query, va_list args )
static void NotifyPlaylist( input_thread_t *p_input )
{
- playlist_t *p_playlist = pl_Yield( p_input );
+ playlist_t *p_playlist = pl_Get( p_input );
+ if( p_playlist->b_die )
+ return;
+ vlc_object_yield( p_playlist );
var_SetInteger( p_playlist, "item-change",
p_input->p->input.p_item->i_id );
pl_Release( p_input );
More information about the vlc-devel
mailing list