summaryrefslogtreecommitdiff
path: root/src/fruits/cmv
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2025-09-08 13:54:36 -0400
committerAndrew Opalach <andrew@akon.city> 2025-09-08 13:54:36 -0400
commitce955da36daa278d5b331b3c97e228e733a5125e (patch)
treee221231e7c0da5324355af44a2e53f41166e3a05 /src/fruits/cmv
parentcbbb0c16dc3d9c375ac2a18ca3d59cc308d41beb (diff)
downloadcamu-ce955da36daa278d5b331b3c97e228e733a5125e.tar.gz
camu-ce955da36daa278d5b331b3c97e228e733a5125e.tar.bz2
camu-ce955da36daa278d5b331b3c97e228e733a5125e.zip
Major FFmpeg build improvements
- Make build more compatible with a traditional linux environment. Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src/fruits/cmv')
-rw-r--r--src/fruits/cmv/cmv.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/fruits/cmv/cmv.c b/src/fruits/cmv/cmv.c
index 6875dd1..63e035d 100644
--- a/src/fruits/cmv/cmv.c
+++ b/src/fruits/cmv/cmv.c
@@ -49,9 +49,9 @@ static nn_thread_result NNWT_THREADCALL event_loop_thread(void *userdata)
static bool parse_exe_name_params(str *exe_name, str *addr, struct lia_prefs *prefs)
{
u32 index = al_str_rfind(exe_name, '/');
- if (index == AL_STR_NPOS) {
+ if (index == AL_STR_NO_POS) {
index = al_str_rfind(exe_name, '\\');
- if (index == AL_STR_NPOS) goto def;
+ if (index == AL_STR_NO_POS) goto def;
}
str sub = al_str_substr(exe_name, index + 1, exe_name->length);
@@ -62,19 +62,19 @@ static bool parse_exe_name_params(str *exe_name, str *addr, struct lia_prefs *pr
// Skip version.
index = al_str_find(&sub, '-');
- if (index == AL_STR_NPOS) goto def;
+ if (index == AL_STR_NO_POS) goto def;
sub = al_str_substr(&sub, index + 1, sub.length);
index = al_str_find(&sub, '-');
- if (index == AL_STR_NPOS) goto def;
+ if (index == AL_STR_NO_POS) goto def;
*addr = al_str_substr(&sub, 0, index);
for (;;) {
sub = al_str_substr(&sub, index + 1, sub.length);
index = al_str_find(&sub, '-');
- if (index == AL_STR_NPOS) {
+ if (index == AL_STR_NO_POS) {
index = al_str_find(&sub, '.');
- if (index == AL_STR_NPOS) {
+ if (index == AL_STR_NO_POS) {
index = sub.length;
} else {
sub.length = index;