[vlc-devel] commit: Fix mistake in 92290c9d that allowed modules with no basic options (i.e. != advanced) to be shown in vlc -p <something> output with --no-advanced. (Antoine Cellerier )

git version control git at videolan.org
Tue Sep 2 01:07:53 CEST 2008


vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Tue Sep  2 00:51:10 2008 +0200| [c4963958149fcaa2de789cbd4a7ccb0350b9014d] | committer: Antoine Cellerier 

Fix mistake in 92290c9d that allowed modules with no basic options (i.e. != advanced) to be shown in vlc -p <something> output with --no-advanced.

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

 src/libvlc.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/libvlc.c b/src/libvlc.c
index 7c8f0cd..09f00b4 100644
--- a/src/libvlc.c
+++ b/src/libvlc.c
@@ -1469,6 +1469,9 @@ static void Usage( libvlc_int_t *p_this, char const *psz_module_name )
                 if( (p_item->i_type & CONFIG_ITEM) &&
                     !p_item->b_advanced ) break;
             }
+
+            if( p_item == p_end )
+                continue;
         }
 
         /* Print name of module */




More information about the vlc-devel mailing list