Skip to content

Commit

Permalink
Code cleaning. Version 1.6.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
ua0lnj committed Jan 27, 2024
1 parent e871010 commit b00503d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
18 changes: 9 additions & 9 deletions control.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,15 @@ void cMpvControl::ShowProgress(int playlist)
DisplayReplay->SetMode(!Player->IsPaused(), true, Speed);

if (playlist)
{
DisplayReplay->SetCurrent(itoa(Player->CurrentListPos()));
DisplayReplay->SetTotal(itoa(Player->TotalListPos()));
}
else
{
DisplayReplay->SetCurrent(IndexToHMSF(Player->CurrentPlayTime(), false, 1));
DisplayReplay->SetTotal(IndexToHMSF(Player->TotalPlayTime(), false, 1));
}
{
DisplayReplay->SetCurrent(itoa(Player->CurrentListPos()));
DisplayReplay->SetTotal(itoa(Player->TotalListPos()));
}
else
{
DisplayReplay->SetCurrent(IndexToHMSF(Player->CurrentPlayTime(), false, 1));
DisplayReplay->SetTotal(IndexToHMSF(Player->TotalPlayTime(), false, 1));
}
SetNeedsFastResponse(true);
Skins.Flush();
}
Expand Down
8 changes: 4 additions & 4 deletions menu_options.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ eOSState cMpvMenuOptions::ProcessKey(eKeys Key)
switch (Key)
{
case kOk:
if(State == osUser1)
AddSubMenu(new cMpvMenuChapters(player));
if(State == osUser2)
AddSubMenu(new cMpvMenuPlaylist(player));
if(State == osUser1)
AddSubMenu(new cMpvMenuChapters(player));
if(State == osUser2)
AddSubMenu(new cMpvMenuPlaylist(player));
break;

default:
Expand Down
2 changes: 1 addition & 1 deletion mpv.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "menu_options.h"
#include "mpv_service.h"

static const char *VERSION = "1.5.2"
static const char *VERSION = "1.6.0"
#ifdef GIT_REV
"-GIT" GIT_REV
#endif
Expand Down

0 comments on commit b00503d

Please sign in to comment.