#include <QGridLayout>
#include <QVideoWidget>
#include <QShortcut>
+#include <algorithm>
#include <string>
#include <map>
#include <vector>
using namespace std;
-std::string format_timestamp(uint64_t pos)
+string format_timestamp(uint64_t pos)
{
int ms = pos % 1000;
pos /= 1000;
void MainWindow::seek(int64_t delta_ms)
{
int64_t current_pos = buffered_seek ? *buffered_seek : player->position();
- uint64_t pos = std::max<int64_t>(current_pos + delta_ms, 0);
+ uint64_t pos = max<int64_t>(current_pos + delta_ms, 0);
buffered_seek = pos;
if (!playing) {
player->setPlaybackRate(0.01);