fix seeking with f/b in visualizer

visualizer specific timeout is too small, so we
need to set it to default value while seeking.
This commit is contained in:
Andrzej Rybczak
2009-10-27 02:40:40 +01:00
parent 23d5601968
commit fa9b58627a

View File

@@ -1168,6 +1168,9 @@ int main(int argc, char *argv[])
songpos = Mpd.GetElapsedTime(); songpos = Mpd.GetElapsedTime();
int old_timeout = wFooter->GetTimeout();
wFooter->SetTimeout(ncmpcpp_window_timeout);
SeekingInProgress = 1; SeekingInProgress = 1;
*wFooter << fmtBold; *wFooter << fmtBold;
while (Keypressed(input, Key.SeekForward) || Keypressed(input, Key.SeekBackward)) while (Keypressed(input, Key.SeekForward) || Keypressed(input, Key.SeekBackward))
@@ -1229,6 +1232,8 @@ int main(int argc, char *argv[])
Mpd.Seek(songpos); Mpd.Seek(songpos);
UpdateStatusImmediately = 1; UpdateStatusImmediately = 1;
wFooter->SetTimeout(old_timeout);
UnlockProgressbar(); UnlockProgressbar();
UnlockStatusbar(); UnlockStatusbar();
} }