Skip to content

Commit

Permalink
capability: fix bug
Browse files Browse the repository at this point in the history
media player's seek use the second unit.

Signed-off-by: JeanTracker <[email protected]>
  • Loading branch information
JeanTracker authored and kimhyungrok committed Jun 13, 2024
1 parent c25d464 commit 83332d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/capability/audio_player_agent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,7 @@ void AudioPlayerAgent::parsingPlay(const char* message)
sendEventPlaybackFailed(PlaybackError::MEDIA_ERROR_INTERNAL_DEVICE_ERROR, "can't set source");
return;
}
if (offset >= 0 && !cur_player->seek(offset)) {
if (offset >= 0 && !cur_player->seek(offset / 1000)) {
nugu_error("seek media failed");
sendEventPlaybackFailed(PlaybackError::MEDIA_ERROR_INTERNAL_DEVICE_ERROR, "can't seek");
return;
Expand Down

0 comments on commit 83332d6

Please sign in to comment.