[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 13:28:33 CEST 2008


vlc | branch: 0.9-bugfix | Antoine Cellerier <dionoea at videolan.org> | Tue Sep  2 00:51:10 2008 +0200| [d27f1a414cef0ce790783f8477ba0f3a17ac029b] | 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.
(cherry picked from commit c4963958149fcaa2de789cbd4a7ccb0350b9014d)

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

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

diff --git a/src/libvlc.c b/src/libvlc.c
index 96cab09..5402c96 100644
--- a/src/libvlc.c
+++ b/src/libvlc.c
@@ -1471,6 +1471,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