[vlc-devel] [PATCH 13/15] test/media: fix arguments order

Thomas Guillem thomas at gllm.fr
Thu Apr 14 17:45:02 CEST 2016


In order to match libvlc ones.
---
 test/libvlc/media.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/test/libvlc/media.c b/test/libvlc/media.c
index fccd93e..85f32f7 100644
--- a/test/libvlc/media.c
+++ b/test/libvlc/media.c
@@ -37,7 +37,7 @@ static void media_parse_ended(const libvlc_event_t *event, void *user_data)
     vlc_sem_post (sem);
 }
 
-static void test_media_preparsed(const char** argv, int argc)
+static void test_media_preparsed(int argc, const char** argv)
 {
     // We use this image file because "empty.voc" has no track.
     const char * file = SRCDIR"/samples/image.jpg";
@@ -168,7 +168,7 @@ static void test_media_subitems_media(libvlc_media_t *media, bool play)
     }
 }
 
-static void test_media_subitems(const char** argv, int argc)
+static void test_media_subitems(int argc, const char** argv)
 {
     const char *subitems_path = SRCDIR"/samples/subitems";
 
@@ -220,8 +220,8 @@ int main (void)
 {
     test_init();
 
-    test_media_preparsed (test_defaults_args, test_defaults_nargs);
-    test_media_subitems (test_defaults_args, test_defaults_nargs);
+    test_media_preparsed (test_defaults_nargs, test_defaults_args);
+    test_media_subitems (test_defaults_nargs, test_defaults_args);
 
     return 0;
 }
-- 
2.8.0.rc3



More information about the vlc-devel mailing list