X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/7edc7e4274f627ad91f0b6630ebd42e4633e2040..4942ee7d61bf22ba38bf026c7d05028cb7db0d54:/clients/playrtp.c diff --git a/clients/playrtp.c b/clients/playrtp.c index 4e27ebf..7eed9eb 100644 --- a/clients/playrtp.c +++ b/clients/playrtp.c @@ -1,6 +1,6 @@ /* * This file is part of DisOrder. - * Copyright (C) 2007, 2008 Richard Kettlewell + * Copyright (C) 2007-2009 Richard Kettlewell * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -324,6 +324,9 @@ static void *queue_thread(void attribute((unused)) *arg) { pthread_cond_broadcast(&cond); pthread_mutex_unlock(&lock); } +#if HAVE_STUPID_GCC44 + return NULL; +#endif } /** @brief Background thread collecting samples @@ -759,9 +762,6 @@ int main(int argc, char **argv) { struct sockaddr_in *in = (struct sockaddr_in *)res->ai_addr; memset(&in->sin_addr, 0, sizeof (struct in_addr)); - if(bind(rtpfd, res->ai_addr, res->ai_addrlen) < 0) - fatal(errno, "error binding socket to 0.0.0.0 port %d", - ntohs(in->sin_port)); break; } case AF_INET6: { @@ -858,7 +858,7 @@ int main(int argc, char **argv) { || (nsamples > 0 && contains(pheap_first(&packets), next_timestamp))) { if(monitor) { - time_t now = time(0); + time_t now = xtime(0); if(now >= lastlog + 60) { int offset = nsamples - minbuffer;