- Added check boxes for enable/disable the layers and master preview to save reoources
This commit is contained in:
parent
84c85d5b36
commit
d1c4295692
6 changed files with 104 additions and 21 deletions
|
|
@ -1588,6 +1588,39 @@ void libreMediaServer::sendFrame()
|
|||
m_msex->n_timer->start();
|
||||
}
|
||||
|
||||
// Enable/Disable the GUI Master preview
|
||||
void libreMediaServer::on_previewMaster_stateChanged (int state)
|
||||
{
|
||||
if ((state == 0)) {
|
||||
m_preview->stop();
|
||||
}
|
||||
if ((state == 2))
|
||||
{
|
||||
m_preview->start();
|
||||
}
|
||||
}
|
||||
|
||||
// Enable/Disable the GUI Layers preview
|
||||
void libreMediaServer::on_previewLayer_stateChanged (int state)
|
||||
{
|
||||
if ((state == 0)) {
|
||||
QString desc = tr("0022 0;");
|
||||
if (!sendPacket(desc.toAscii().constData(),desc.size()))
|
||||
{
|
||||
errorsending();
|
||||
}
|
||||
}
|
||||
if ((state == 2))
|
||||
{
|
||||
QString desc = tr("0022 1;");
|
||||
if (!sendPacket(desc.toAscii().constData(),desc.size()))
|
||||
{
|
||||
errorsending();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Terminal and Log
|
||||
|
|
@ -1604,7 +1637,7 @@ void libreMediaServer::stdout_audio() {
|
|||
}
|
||||
}
|
||||
|
||||
// Sacamos la salida de Pure Data Video en la terminal
|
||||
// Sacamos la salida de Pure Data Video en la terminal. Filtra mensajes para el GUI.
|
||||
void libreMediaServer::stdout() {
|
||||
QByteArray out = m_pd_video->readAllStandardError();
|
||||
if (out.size() < 7) {return;}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue