[vlc-commits] commit: winvlc.c: cosmetics ( Rafaël Carré )

git at videolan.org git at videolan.org
Fri Oct 22 18:09:14 CEST 2010


vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Fri Oct 22 18:08:25 2010 +0200| [35c8b6fef690fef90842044a07028b9366255c3d] | committer: Rafaël Carré 

winvlc.c: cosmetics

make the loop for copying options in argv nicer

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

 bin/winvlc.c |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/bin/winvlc.c b/bin/winvlc.c
index 92d3441..1b9f475 100644
--- a/bin/winvlc.c
+++ b/bin/winvlc.c
@@ -150,12 +150,10 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
         if(!wcscmp(wargv[i], L"--no-crashdump"))
         {
             crash_handling = FALSE;
+            continue; /* don't give argument to libvlc */
         }
-        else
-        {
-            argv[j] = FromWide (wargv[i]);
-            j++;
-        }
+
+        argv[j++] = FromWide (wargv[i]);
     }
 
     argc = j;



More information about the vlc-commits mailing list