[vlc-devel] commit: Add information about variables having choices to the "vars" command. (Antoine Cellerier )
git version control
git at videolan.org
Wed Aug 27 01:03:32 CEST 2008
vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Tue Aug 26 23:10:49 2008 +0200| [28c6dc6e173186ea299c12270a2b84b1c5b9b515] | committer: Antoine Cellerier
Add information about variables having choices to the "vars" command.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=28c6dc6e173186ea299c12270a2b84b1c5b9b515
---
src/misc/objects.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/misc/objects.c b/src/misc/objects.c
index a05677f..8e35be1 100644
--- a/src/misc/objects.c
+++ b/src/misc/objects.c
@@ -991,7 +991,7 @@ static int DumpCommand( vlc_object_t *p_this, char const *psz_cmd,
(void)oldval; (void)p_data;
if( *psz_cmd == 'l' )
{
- vlc_object_t *root = VLC_OBJECT (vlc_global ()), *cur = root;
+ vlc_object_t *root = VLC_OBJECT (vlc_global ()), *cur = root;
vlc_mutex_lock( &structure_lock );
do
@@ -1079,6 +1079,8 @@ static int DumpCommand( vlc_object_t *p_this, char const *psz_cmd,
if( p_var->psz_text )
printf( ", %s", p_var->psz_text );
printf( ")" );
+ if( p_var->i_type & VLC_VAR_HASCHOICE )
+ printf( ", has choices" );
if( p_var->i_type & VLC_VAR_ISCOMMAND )
printf( ", command" );
if( p_var->i_entries )
More information about the vlc-devel
mailing list