]> git.sesse.net Git - vlc/commitdiff
media_list_player: Don't fetch stop event from media player in media_list_player_stop.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sun, 20 Jul 2008 10:22:58 +0000 (12:22 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sun, 20 Jul 2008 10:22:58 +0000 (12:22 +0200)
src/control/media_list_player.c

index 6b2bbf975498ba38a28d1666551d21cc6e162a90..40b45dba0b70e8cec0662d770da64d24b3e1f080 100644 (file)
@@ -435,7 +435,10 @@ void libvlc_media_list_player_stop( libvlc_media_list_player_t * p_mlp,
 {
     if ( p_mlp->p_mi )
     {
+        /* We are not interested in getting media stop event now */
+        uninstall_media_player_observer( p_mlp );
         libvlc_media_player_stop( p_mlp->p_mi, p_e );
+        install_media_player_observer( p_mlp );
     }
 
     vlc_mutex_lock( &p_mlp->object_lock );