mpg123 1.33.0-dev+20250525022201

This commit is contained in:
Ozkan Sezer
2025-05-25 20:40:02 +03:00
parent 22dadfaa3c
commit bf2eba7bc0
28 changed files with 433 additions and 112 deletions

View File

@@ -456,11 +456,11 @@ out123_open(out123_handle *ao, const char* driver, const char* device)
/* Now loop over the list of possible modules to find one that works. */
char *toksave = NULL;
nextname = strtok_r(modnames, ",", &toksave);
nextname = INT123_compat_strtok(modnames, ",", &toksave);
while(!ao->open && nextname)
{
char *curname = nextname;
nextname = strtok_r(NULL, ",", &toksave);
nextname = INT123_compat_strtok(NULL, ",", &toksave);
check_output_module(ao, curname, device, !nextname);
if(ao->open)
{

View File

@@ -172,7 +172,7 @@ static int get_formats_win32(out123_handle *ao)
int ret = 0;
UINT dev_id = dev_select(ao);
MMRESULT mr = waveOutGetDevCaps(dev_id, &caps, sizeof(caps));
MMRESULT mr = waveOutGetDevCapsA(dev_id, &caps, sizeof(caps));
if(mr != MMSYSERR_NOERROR)
return 0; /* no formats? */
@@ -367,7 +367,7 @@ static int enumerate_win32( out123_handle *ao, int (*store_device)(void *devlist
for(i = 0; i < devices; i++){
memset(id, 0, sizeof(id));
memset(&caps, 0, sizeof(caps));
mr = waveOutGetDevCaps(i, &caps, sizeof(caps));
mr = waveOutGetDevCapsA(i, &caps, sizeof(caps));
if (mr != MMSYSERR_NOERROR) {
switch(mr) {
case MMSYSERR_BADDEVICEID: