This is an automated email from the ASF dual-hosted git repository. GUIDINGLI pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit 63f51968593e5dd343de8210aaf9ff947f13ebbc Author: 424635328 <[email protected]> AuthorDate: Mon Nov 9 20:51:19 2026 +0800 nxplayer: add braces around the mediadir command bodies nxstyle requires braces around the body of a control statement. The mediadir command was written without them, so the file fails the style check as soon as anything else in it changes. Signed-off-by: 424635328 <[email protected]> --- system/nxplayer/nxplayer_main.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/system/nxplayer/nxplayer_main.c b/system/nxplayer/nxplayer_main.c index c46946ad4..cb5659778 100644 --- a/system/nxplayer/nxplayer_main.c +++ b/system/nxplayer/nxplayer_main.c @@ -581,9 +581,13 @@ static int nxplayer_cmd_mediadir(FAR struct nxplayer_s *pplayer, char *parg) /* If no arg given, then print current media dir */ if (parg == NULL || *parg == '\0') - printf("%s\n", pplayer->mediadir); + { + printf("%s\n", pplayer->mediadir); + } else - nxplayer_setmediadir(pplayer, parg); + { + nxplayer_setmediadir(pplayer, parg); + } return OK; }
