Skip to content

Commit 91a53ff

Browse files
committed
command: use mp_stripext for filename/no-ext
1 parent aafb828 commit 91a53ff

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

player/command.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -534,9 +534,7 @@ static int mp_property_filename(void *ctx, struct m_property *prop,
534534
if (strcmp(ka->key, "no-ext") == 0) {
535535
action = ka->action;
536536
arg = ka->arg;
537-
bstr root;
538-
if (mp_splitext(f, &root))
539-
f = bstrto0(filename, root);
537+
f = mp_stripext(filename, f);
540538
}
541539
}
542540
int r = m_property_strdup_ro(action, arg, f);

0 commit comments

Comments
 (0)