From: <fla...@gm...> - 2007-06-06 19:52:30
|
# HG changeset patch # User Diego 'Flameeyes' Pettenò <fla...@gm...> # Date 1181159535 -7200 # Node ID dd59a55edb5b5257879bef0529dcdf4bbc8f4262 # Parent 4e1bd8eaaa5b61ca0f05faaeddd5123dd9d71e4c Don't return integer, the function is expected to return a pointer. diff -r dd59a55edb5b5257879bef0529dcdf4bbc8f4262 -r 4e1bd8eaaa5b61ca0f05faaeddd5123dd9d71e4c src/xine-engine/metronom.c --- a/src/xine-engine/metronom.c Wed Jun 06 21:52:15 2007 +0200 +++ b/src/xine-engine/metronom.c Wed Jun 06 21:40:50 2007 +0200 @@ -851,7 +851,8 @@ static void metronom_unregister_scr (met this->scr_master = get_master_scr(this); } -static int metronom_sync_loop (metronom_clock_t *this) { +static void *metronom_sync_loop (void *const this_gen) { + metronom_clock_t *const this = (metronom_clock_t *const)this_gen; struct timeval tv; struct timespec ts; @@ -874,7 +875,7 @@ static int metronom_sync_loop (metronom_ pthread_mutex_unlock (&this->lock); } - return 0; + return NULL; } static void metronom_exit (metronom_t *this) { @@ -990,7 +991,7 @@ metronom_clock_t *_x_metronom_clock_init this->thread_running = 1; if ((err = pthread_create(&this->sync_thread, NULL, - (void*(*)(void*)) metronom_sync_loop, this)) != 0) + metronom_sync_loop, this)) != 0) xprintf(this->xine, XINE_VERBOSITY_NONE, "cannot create sync thread (%s)\n", strerror(err)); |