diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-06-06 21:52:15 +0200 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-06-06 21:52:15 +0200 |
commit | 9a5c7569df986181a089c33fbd4eeae0122a512d (patch) | |
tree | 3c5cc2c6b7a3d8043c98bb8e4f52c83a8d43a952 | |
parent | 7f249d1dde1e0c4f7023926ce96a87bb7734c57b (diff) | |
download | xine-lib-9a5c7569df986181a089c33fbd4eeae0122a512d.tar.gz xine-lib-9a5c7569df986181a089c33fbd4eeae0122a512d.tar.bz2 |
Don't return integer, the function is expected to return a pointer.
-rw-r--r-- | src/xine-engine/metronom.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/xine-engine/metronom.c b/src/xine-engine/metronom.c index fa33da9e1..50720e157 100644 --- a/src/xine-engine/metronom.c +++ b/src/xine-engine/metronom.c @@ -851,7 +851,8 @@ static void metronom_unregister_scr (metronom_clock_t *this, scr_plugin_t *scr) 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_clock_t *this) { 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(xine_t *xine) 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)); |