X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=platform%2Fpsp%2Fmp3.c;h=db3e39dbfc6e9033a0984b1aa1f9798137ab359b;hb=2445b7cb6d5a0f0aa8697fdaa8af8ca52780f5b7;hp=456b72b95e6c3ae7c2054f37409498f248a91cb0;hpb=9dc09829192f73f5d0502c8b312a39863bca60d3;p=picodrive.git diff --git a/platform/psp/mp3.c b/platform/psp/mp3.c index 456b72b..db3e39d 100644 --- a/platform/psp/mp3.c +++ b/platform/psp/mp3.c @@ -165,7 +165,8 @@ int mp3_init(void) mod = load_start_module("flash0:/kd/audiocodec.prx"); else mod = load_start_module("flash0:/kd/avcodec.prx"); if (mod < 0) { - ret = mod = load_start_module("flash0:/kd/audiocodec_260.prx"); // last chance.. + ret = mod; + mod = load_start_module("flash0:/kd/audiocodec_260.prx"); // last chance.. if (mod < 0) goto fail; } @@ -204,8 +205,9 @@ int mp3_init(void) goto fail2; } + /* use slightly higher prio then main */ thread_exit = 0; - thid = sceKernelCreateThread("mp3decode_thread", decode_thread, 30, 0x2000, 0, 0); /* use slightly higher prio then main */ + thid = sceKernelCreateThread("mp3decode_thread", decode_thread, 30, 0x2000, 0, NULL); if (thid < 0) { lprintf("failed to create decode thread: %08x\n", thid); ret = thid;