Commit a4afabc2 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

libvlc: Fix EnumClockSource prototype

vlc_string_list_cb is expected to return an int
parent ee525e65
......@@ -39,7 +39,7 @@ void system_Configure ( libvlc_int_t *, int, const char *const [] );
#if defined(_WIN32) || defined(__OS2__)
void system_End(void);
#ifndef __OS2__
size_t EnumClockSource( const char *, char ***, char *** );
int EnumClockSource( const char *, char ***, char *** );
#endif
#endif
void vlc_CPU_dump(vlc_object_t *);
......
......@@ -877,12 +877,12 @@ static BOOL SelectClockSource(void *data)
return TRUE;
}
size_t EnumClockSource(const char *var, char ***vp, char ***np)
int EnumClockSource(const char *var, char ***vp, char ***np)
{
const size_t max = 6;
char **values = xmalloc (sizeof (*values) * max);
char **names = xmalloc (sizeof (*names) * max);
size_t n = 0;
int n = 0;
values[n] = xstrdup ("");
names[n] = xstrdup (_("Auto"));
......
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