]> git.sesse.net Git - vlc/commitdiff
Make sure that the progress bar dialog exists before updating its status.
authorAntoine Cellerier <dionoea@videolan.org>
Thu, 2 Feb 2006 16:36:48 +0000 (16:36 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Thu, 2 Feb 2006 16:36:48 +0000 (16:36 +0000)
src/interface/interaction.c

index 9ceac7346589e61af0177be59af7232086bfaafe..2f0108bdc28425e3a5b6dfe6f562172fb2ed2844 100644 (file)
@@ -375,7 +375,7 @@ void __intf_UserProgressUpdate( vlc_object_t *p_this, int i_id,
     vlc_mutex_lock( &p_interaction->object_lock );
     p_dialog  =  intf_InteractionGetById( p_this, i_id );
 
-    if( !p_dialog )
+    if( !p_dialog || p_dialog->i_status == NEW_DIALOG )
     {
         vlc_mutex_unlock( &p_interaction->object_lock ) ;
         return;