Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/wavplayer.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,11 @@ static int wavplayer_event_handler(struct wavplayer *player, int timeout)
#endif

result = rt_mq_recv(player->mq, &msg, sizeof(struct play_msg), timeout);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

result的类型也需要改成rt_ssize_t

if (result != RT_EOK)
#if RT_VER_NUM > 0x50000
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

请改成 #if defined(RT_VERSION_CHECK) && (RTTHREAD_VERSION >= RT_VERSION_CHECK(5, 0, 1)) 谢谢

if (!result)
#else
if (RT_EOK != result)
#endif
{
event = PLAYER_EVENT_NONE;
return event;
Expand Down