[vlc-commits] Win32: fix clock sources enumeration

Rémi Denis-Courmont git at videolan.org
Mon Oct 22 20:23:31 CEST 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Oct 22 21:22:54 2012 +0300| [65edb507680a4b875624c45cb193f0df352352ba] | committer: Rémi Denis-Courmont

Win32: fix clock sources enumeration

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

 src/libvlc.h       |    2 +-
 src/win32/thread.c |    5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/libvlc.h b/src/libvlc.h
index b1da59b..8777663 100644
--- a/src/libvlc.h
+++ b/src/libvlc.h
@@ -43,7 +43,7 @@ void system_Init      ( void );
 void system_Configure ( libvlc_int_t *, int, const char *const [] );
 #ifdef WIN32
 void system_End(void);
-size_t EnumClockSource( vlc_object_t *, char ***, char *** );
+size_t EnumClockSource( vlc_object_t *, const char *, char ***, char *** );
 #endif
 void vlc_CPU_init(void);
 void vlc_CPU_dump(vlc_object_t *);
diff --git a/src/win32/thread.c b/src/win32/thread.c
index 00bed00..9de5446 100644
--- a/src/win32/thread.c
+++ b/src/win32/thread.c
@@ -793,7 +793,8 @@ static void SelectClockSource (vlc_object_t *obj)
 
 #define xstrdup(str) (strdup(str) ?: (abort(), NULL))
 
-size_t EnumClockSource (vlc_object_t *obj, char ***vp, char ***np)
+size_t EnumClockSource (vlc_object_t *obj, const char *var,
+                        char ***vp, char ***np)
 {
     const size_t max = 6;
     char **values = xmalloc (sizeof (*values) * max);
@@ -836,7 +837,7 @@ size_t EnumClockSource (vlc_object_t *obj, char ***vp, char ***np)
 
     *vp = values;
     *np = names;
-    (void) obj;
+    (void) obj; (void) var;
     return n;
 }
 



More information about the vlc-commits mailing list