Commit 65edb507 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Win32: fix clock sources enumeration

parent 999533ac
...@@ -43,7 +43,7 @@ void system_Init ( void ); ...@@ -43,7 +43,7 @@ void system_Init ( void );
void system_Configure ( libvlc_int_t *, int, const char *const [] ); void system_Configure ( libvlc_int_t *, int, const char *const [] );
#ifdef WIN32 #ifdef WIN32
void system_End(void); void system_End(void);
size_t EnumClockSource( vlc_object_t *, char ***, char *** ); size_t EnumClockSource( vlc_object_t *, const char *, char ***, char *** );
#endif #endif
void vlc_CPU_init(void); void vlc_CPU_init(void);
void vlc_CPU_dump(vlc_object_t *); void vlc_CPU_dump(vlc_object_t *);
......
...@@ -793,7 +793,8 @@ static void SelectClockSource (vlc_object_t *obj) ...@@ -793,7 +793,8 @@ static void SelectClockSource (vlc_object_t *obj)
#define xstrdup(str) (strdup(str) ?: (abort(), NULL)) #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; const size_t max = 6;
char **values = xmalloc (sizeof (*values) * max); char **values = xmalloc (sizeof (*values) * max);
...@@ -836,7 +837,7 @@ size_t EnumClockSource (vlc_object_t *obj, char ***vp, char ***np) ...@@ -836,7 +837,7 @@ size_t EnumClockSource (vlc_object_t *obj, char ***vp, char ***np)
*vp = values; *vp = values;
*np = names; *np = names;
(void) obj; (void) obj; (void) var;
return n; return n;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment