Commit 989765b2 authored by jehan's avatar jehan

fix compilation issue

parent 854187d1
......@@ -548,7 +548,7 @@ static void playout_buf(WinSnd *d, WAVEHDR *hdr, mblk_t *m){
MMRESULT mr;
hdr->dwUser=(DWORD)m;
hdr->lpData=(LPSTR)m->b_rptr;
hdr->dwBufferLength=msgdsize(m);
hdr->dwBufferLength=(DWORD)msgdsize(m);
hdr->dwFlags = 0;
mr = waveOutPrepareHeader(d->outdev,hdr,sizeof(*hdr));
if (mr != MMSYSERR_NOERROR){
......@@ -597,7 +597,7 @@ static void winsnd_write_process(MSFilter *f){
}
m=ms_queue_get(f->inputs[0]);
if (!m) break;
d->nsamples+=msgdsize(m)/d->wfx.nBlockAlign;
d->nsamples+=(int)msgdsize(m)/d->wfx.nBlockAlign;
/*if the output buffer has finished to play, unprepare it*/
if ((hdr->dwFlags & WHDR_DONE) || (hdr->dwFlags == 0)){
mr=waveOutUnprepareHeader(d->outdev,hdr,sizeof(*hdr));
......
......@@ -120,7 +120,7 @@ int ms_discover_mtu(const char *host)
ms_error("getaddrinfo(): error\n");
return -1;
}
getnameinfo (ai->ai_addr, ai->ai_addrlen, ipaddr, sizeof (ipaddr), port,
getnameinfo (ai->ai_addr, (socklen_t)ai->ai_addrlen, ipaddr, sizeof (ipaddr), port,
sizeof (port), NI_NUMERICHOST | NI_NUMERICSERV);
freeaddrinfo(ai);
......
......@@ -110,7 +110,7 @@ int main (int argc, char *argv[]) {
// this allows to launch tester from outside of tester directory
if (strstr(argv[0], ".libs")) {
long prefix_length = strstr(argv[0], ".libs") - argv[0] + 1;
long prefix_length =(long) (strstr(argv[0], ".libs") - argv[0] + 1);
char *prefix = ms_strdup_printf("%s%.*s", argv[0][0] == '/' ? "" : "./", prefix_length, argv[0]);
ms_warning("Resource prefix set to %s", prefix);
bc_tester_set_resource_dir_prefix(prefix);
......
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