This commit is contained in:
twinaphex 2020-02-01 04:19:22 +01:00
parent 64c515bac4
commit ca83be1db4
3 changed files with 25 additions and 23 deletions

View File

@ -1449,7 +1449,7 @@ static int16_t *decode_audio(AVCodecContext *ctx, AVPacket *pkt,
return buffer; return buffer;
} }
while(true) for (;;)
{ {
ret = avcodec_receive_frame(ctx, frame); ret = avcodec_receive_frame(ctx, frame);
if (ret == AVERROR(EAGAIN) || ret == AVERROR_EOF) if (ret == AVERROR(EAGAIN) || ret == AVERROR_EOF)

View File

@ -69,7 +69,8 @@
static enum frontend_fork wiiu_fork_mode = FRONTEND_FORK_NONE; static enum frontend_fork wiiu_fork_mode = FRONTEND_FORK_NONE;
static const char *elf_path_cst = WIIU_SD_PATH "retroarch/retroarch.elf"; static const char *elf_path_cst = WIIU_SD_PATH "retroarch/retroarch.elf";
static bool exists(char *path) { static bool exists(char *path)
{
struct stat stat_buf = {0}; struct stat stat_buf = {0};
if (!path) if (!path)
@ -397,6 +398,7 @@ static void get_arguments(int *argc, char ***argv)
u32 argc; u32 argc;
char *argv[3]; char *argv[3];
} *param = ARGV_PTR; } *param = ARGV_PTR;
if (param->magic == ARGV_MAGIC) if (param->magic == ARGV_MAGIC)
{ {
*argc = param->argc; *argc = param->argc;
@ -435,7 +437,7 @@ static void main_loop(void)
OSTime start_time; OSTime start_time;
int status; int status;
do for (;;)
{ {
if (video_driver_get_ptr(false)) if (video_driver_get_ptr(false))
{ {
@ -449,7 +451,7 @@ static void main_loop(void)
if (status == -1) if (status == -1)
break; break;
} while(true); }
} }
static void SaveCallback(void) static void SaveCallback(void)
@ -488,7 +490,7 @@ int getBroadcastAddress(ACIpAddress *broadcast)
ACIpAddress myIp, mySubnet; ACIpAddress myIp, mySubnet;
ACResult result; ACResult result;
if(broadcast == NULL) if (!broadcast)
return -1; return -1;
result = ACGetAssignedAddress(&myIp); result = ACGetAssignedAddress(&myIp);

View File

@ -623,7 +623,7 @@ static void qnx_handle_navigator_event(
{ {
case NAVIGATOR_WINDOW_THUMBNAIL: case NAVIGATOR_WINDOW_THUMBNAIL:
case NAVIGATOR_WINDOW_INVISIBLE: case NAVIGATOR_WINDOW_INVISIBLE:
while(true) for (;;)
{ {
unsigned event_code; unsigned event_code;
@ -699,7 +699,7 @@ static void qnx_input_poll(void *data)
qnx_input_t *qnx = (qnx_input_t*)data; qnx_input_t *qnx = (qnx_input_t*)data;
/* Request and process all available BPS events. */ /* Request and process all available BPS events. */
while(true) for (;;)
{ {
bps_event_t *event = NULL; bps_event_t *event = NULL;
int rc = bps_get_event(&event, 0); int rc = bps_get_event(&event, 0);