[vlc-devel] commit: vars command needs the variable lock ( Rémi Denis-Courmont )

git version control git at videolan.org
Thu Sep 24 19:18:48 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Sep 24 20:00:15 2009 +0300| [393acdb440c67f17b82ecec892befed8f6904a14] | committer: Rémi Denis-Courmont 

vars command needs the variable lock

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=393acdb440c67f17b82ecec892befed8f6904a14
---

 src/misc/objects.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/misc/objects.c b/src/misc/objects.c
index 8386bba..eb8e799 100644
--- a/src/misc/objects.c
+++ b/src/misc/objects.c
@@ -819,6 +819,7 @@ static int DumpCommand( vlc_object_t *p_this, char const *psz_cmd,
 
         PrintObject( p_object, "" );
 
+        vlc_mutex_lock( &vlc_internals( p_object )->var_lock );
         if( !vlc_internals( p_object )->i_vars )
             printf( " `-o No variables\n" );
         for( i = 0; i < vlc_internals( p_object )->i_vars; i++ )
@@ -889,6 +890,7 @@ static int DumpCommand( vlc_object_t *p_this, char const *psz_cmd,
             }
             printf( "\n" );
         }
+        vlc_mutex_unlock( &vlc_internals( p_object )->var_lock );
     }
     libvlc_unlock (p_this->p_libvlc);
 




More information about the vlc-devel mailing list