- Added FPS Counter in video tab

This commit is contained in:
Santi Noreña 2013-03-03 00:32:11 +01:00
parent 8b111d44a5
commit 13eb54a29d
11 changed files with 164 additions and 81 deletions

View file

@ -1,6 +1,6 @@
/*
Pure Media Server - A Media Server Sotfware for stage and performing
v0.03-1
Copyright (C) 2012-2013 Santi Noreña libremediaserver@gmail.com
This program is free software: you can redistribute it and/or modify
@ -911,7 +911,7 @@ void libreMediaServer::newPeer()
this, SLOT(newmessage()));
}
// New message in a TCP socket stablished connection
// New message in a socket stablished connection
void libreMediaServer::newmessage()
{
if (m_read_vid == NULL)
@ -1733,7 +1733,15 @@ void libreMediaServer::stdout() {
out.prepend("Layer 8 playing:");
ui.textEdit->appendPlainText(out);
break;
default:
case '9':
out.remove(0,9);
qDebug() <<out;
bool ok;
int fps;
fps = out.toInt(&ok,10);
ui.fpsCounter->display(fps);
break;
default:
qDebug()<<"stdout:Invalid cookie received"<<out;
break;
}