X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/4dadf1a26a3a9b619f7d91cbc435c7d9429d64d3..30fc14d85cf0279d521acce6ec70517ffd910ebe:/clients/playrtp-alsa.c diff --git a/clients/playrtp-alsa.c b/clients/playrtp-alsa.c index ac8ef7e..a3995e9 100644 --- a/clients/playrtp-alsa.c +++ b/clients/playrtp-alsa.c @@ -25,14 +25,12 @@ * wrapping OSS the whole of playrtp could probably be greatly simplified. */ -#include +#include "common.h" #if HAVE_ALSA_ASOUNDLIB_H -#include "types.h" #include #include -#include #include #include @@ -47,9 +45,10 @@ static int playrtp_alsa_supply(void *dst, unsigned supply_nsamples) { unsigned samples_available; + const struct packet *p; pthread_mutex_lock(&lock); - const struct packet *p = playrtp_next_packet(); + p = playrtp_next_packet(); if(p && contains(p, next_timestamp)) { /* This packet is ready to play */ const uint32_t packet_end = p->timestamp + p->nsamples;