mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-08-16 08:34:12 +02:00
2018-05-29 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression that caused meters to fail when rdvairplayd(8) was operated with invalid channel assignments.
This commit is contained in:
parent
954252fd62
commit
b97f158435
@ -16917,3 +16917,6 @@
|
|||||||
wildcards".
|
wildcards".
|
||||||
2018-05-29 Fred Gleason <fredg@paravelsystems.com>
|
2018-05-29 Fred Gleason <fredg@paravelsystems.com>
|
||||||
* Merged pull request #000212, "Patches for building on Ubuntu 18.04".
|
* Merged pull request #000212, "Patches for building on Ubuntu 18.04".
|
||||||
|
2018-05-29 Fred Gleason <fredg@paravelsystems.com>
|
||||||
|
* Fixed a regression that caused meters to fail when rdvairplayd(8)
|
||||||
|
was operated with invalid channel assignments.
|
||||||
|
@ -200,6 +200,13 @@ int RDLogPlay::port(int channum) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
bool RDLogPlay::channelsValid() const
|
||||||
|
{
|
||||||
|
return (play_card[0]>=0)&&(play_card[1]>=0)&&
|
||||||
|
(play_port[0]>=0)&&(play_port[1]>=0);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
RDAirPlayConf::OpMode RDLogPlay::mode() const
|
RDAirPlayConf::OpMode RDLogPlay::mode() const
|
||||||
{
|
{
|
||||||
return play_op_mode;
|
return play_op_mode;
|
||||||
@ -305,10 +312,13 @@ void RDLogPlay::auditionStop()
|
|||||||
|
|
||||||
|
|
||||||
bool RDLogPlay::play(int line,RDLogLine::StartSource src,
|
bool RDLogPlay::play(int line,RDLogLine::StartSource src,
|
||||||
int mport,bool skip_meta)
|
int mport,bool skip_meta)
|
||||||
{
|
{
|
||||||
QTime current_time=QTime::currentTime();
|
QTime current_time=QTime::currentTime();
|
||||||
RDLogLine *logline;
|
RDLogLine *logline;
|
||||||
|
if(!channelsValid()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if((logline=logLine(line))==NULL) {
|
if((logline=logLine(line))==NULL) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -1760,7 +1770,8 @@ void RDLogPlay::notificationReceivedData(RDNotification *notify)
|
|||||||
|
|
||||||
|
|
||||||
bool RDLogPlay::StartEvent(int line,RDLogLine::TransType trans_type,
|
bool RDLogPlay::StartEvent(int line,RDLogLine::TransType trans_type,
|
||||||
int trans_length,RDLogLine::StartSource src,int mport,int duck_length)
|
int trans_length,RDLogLine::StartSource src,
|
||||||
|
int mport,int duck_length)
|
||||||
{
|
{
|
||||||
int running;
|
int running;
|
||||||
int lines[TRANSPORT_QUANTITY];
|
int lines[TRANSPORT_QUANTITY];
|
||||||
@ -1772,6 +1783,9 @@ bool RDLogPlay::StartEvent(int line,RDLogLine::TransType trans_type,
|
|||||||
int aport;
|
int aport;
|
||||||
bool was_paused=false;
|
bool was_paused=false;
|
||||||
|
|
||||||
|
if(!channelsValid()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if((logline=logLine(line))==NULL) {
|
if((logline=logLine(line))==NULL) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -2498,10 +2512,12 @@ void RDLogPlay::SetTransTimer(QTime current_time,bool stop)
|
|||||||
RDLogLine *logline;
|
RDLogLine *logline;
|
||||||
|
|
||||||
if(play_trans_timer->isActive()) {
|
if(play_trans_timer->isActive()) {
|
||||||
if(stop)
|
if(stop) {
|
||||||
play_trans_timer->stop();
|
play_trans_timer->stop();
|
||||||
else
|
}
|
||||||
|
else {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
play_trans_line=-1;
|
play_trans_line=-1;
|
||||||
for(int i=0;i<size();i++) {
|
for(int i=0;i<size();i++) {
|
||||||
|
@ -61,6 +61,7 @@ class RDLogPlay : public QObject,public RDLogEvent
|
|||||||
void setDefaultServiceName(const QString &svcname);
|
void setDefaultServiceName(const QString &svcname);
|
||||||
int card(int channum) const;
|
int card(int channum) const;
|
||||||
int port(int channum) const;
|
int port(int channum) const;
|
||||||
|
bool channelsValid() const;
|
||||||
RDAirPlayConf::OpMode mode() const;
|
RDAirPlayConf::OpMode mode() const;
|
||||||
void setOpMode(RDAirPlayConf::OpMode mode);
|
void setOpMode(RDAirPlayConf::OpMode mode);
|
||||||
void setLogName(QString name);
|
void setLogName(QString name);
|
||||||
|
@ -378,7 +378,7 @@ MainWidget::MainWidget(QWidget *parent)
|
|||||||
start_rmls[i]=rda->airplayConf()->startRml((RDAirPlayConf::Channel)i);
|
start_rmls[i]=rda->airplayConf()->startRml((RDAirPlayConf::Channel)i);
|
||||||
stop_rmls[i]=rda->airplayConf()->stopRml((RDAirPlayConf::Channel)i);
|
stop_rmls[i]=rda->airplayConf()->stopRml((RDAirPlayConf::Channel)i);
|
||||||
}
|
}
|
||||||
if(air_meter_card[1]<0) { // Fixup disabled main log port 2 playout
|
if((air_meter_card[1]<0)||(air_meter_port[1]<0)) { // Fixup disabled main log port 2 playout
|
||||||
air_meter_card[1]=air_meter_card[0];
|
air_meter_card[1]=air_meter_card[0];
|
||||||
air_meter_port[1]=air_meter_port[0];
|
air_meter_port[1]=air_meter_port[0];
|
||||||
cards[1]=cards[0];
|
cards[1]=cards[0];
|
||||||
@ -753,11 +753,13 @@ MainWidget::MainWidget(QWidget *parent)
|
|||||||
}
|
}
|
||||||
air_log_button[0]->setText(tr("Main Log\n[--]"));
|
air_log_button[0]->setText(tr("Main Log\n[--]"));
|
||||||
air_log_button[1]->setText(tr("Aux 1 Log\n[--]"));
|
air_log_button[1]->setText(tr("Aux 1 Log\n[--]"));
|
||||||
if(!rda->airplayConf()->showAuxButton(0)) {
|
if((!rda->airplayConf()->showAuxButton(0))||
|
||||||
|
(!air_log[1]->channelsValid())) {
|
||||||
air_log_button[1]->hide();
|
air_log_button[1]->hide();
|
||||||
}
|
}
|
||||||
air_log_button[2]->setText(tr("Aux 2 Log\n[--]"));
|
air_log_button[2]->setText(tr("Aux 2 Log\n[--]"));
|
||||||
if(!rda->airplayConf()->showAuxButton(1)) {
|
if((!rda->airplayConf()->showAuxButton(1))||
|
||||||
|
(!air_log[2]->channelsValid())) {
|
||||||
air_log_button[2]->hide();
|
air_log_button[2]->hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -924,6 +926,14 @@ void MainWidget::ripcConnected(bool state)
|
|||||||
rml.setAddress(addr);
|
rml.setAddress(addr);
|
||||||
rml.setEchoRequested(false);
|
rml.setEchoRequested(false);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Check Channel Assignments
|
||||||
|
//
|
||||||
|
if(!air_log[0]->channelsValid()) {
|
||||||
|
QMessageBox::warning(this,"RDAirPlay - "+tr("Warning"),
|
||||||
|
tr("Main Log channel assignments are invalid!"));
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Get Onair Flag State
|
// Get Onair Flag State
|
||||||
//
|
//
|
||||||
|
@ -27,8 +27,6 @@ x11 {
|
|||||||
SOURCES += list_log.cpp
|
SOURCES += list_log.cpp
|
||||||
SOURCES += list_logs.cpp
|
SOURCES += list_logs.cpp
|
||||||
SOURCES += local_macros.cpp
|
SOURCES += local_macros.cpp
|
||||||
SOURCES += log_play.cpp
|
|
||||||
SOURCES += log_traffic.cpp
|
|
||||||
SOURCES += loglinebox.cpp
|
SOURCES += loglinebox.cpp
|
||||||
SOURCES += mode_display.cpp
|
SOURCES += mode_display.cpp
|
||||||
SOURCES += pie_counter.cpp
|
SOURCES += pie_counter.cpp
|
||||||
@ -47,8 +45,6 @@ x11 {
|
|||||||
HEADERS += lib_listview.h
|
HEADERS += lib_listview.h
|
||||||
HEADERS += list_log.h
|
HEADERS += list_log.h
|
||||||
HEADERS += list_logs.h
|
HEADERS += list_logs.h
|
||||||
HEADERS += log_play.h
|
|
||||||
HEADERS += log_traffic.h
|
|
||||||
HEADERS += loglinebox.h
|
HEADERS += loglinebox.h
|
||||||
HEADERS += mode_display.h
|
HEADERS += mode_display.h
|
||||||
HEADERS += pie_counter.h
|
HEADERS += pie_counter.h
|
||||||
|
@ -644,6 +644,14 @@ OBNOVEN</translation>
|
|||||||
<source>Unknown command option</source>
|
<source>Unknown command option</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Warning</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Main Log channel assignments are invalid!</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>ModeDisplay</name>
|
<name>ModeDisplay</name>
|
||||||
|
@ -644,6 +644,14 @@ AKTUALISIERT</translation>
|
|||||||
<source>Unknown command option</source>
|
<source>Unknown command option</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Warning</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Main Log channel assignments are invalid!</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>ModeDisplay</name>
|
<name>ModeDisplay</name>
|
||||||
|
@ -644,6 +644,14 @@ LISTA</translation>
|
|||||||
<source>Unknown command option</source>
|
<source>Unknown command option</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Warning</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Main Log channel assignments are invalid!</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>ModeDisplay</name>
|
<name>ModeDisplay</name>
|
||||||
|
@ -644,6 +644,14 @@ DU LOG</translation>
|
|||||||
<source>Unknown command option</source>
|
<source>Unknown command option</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Warning</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Main Log channel assignments are invalid!</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>ModeDisplay</name>
|
<name>ModeDisplay</name>
|
||||||
|
@ -654,6 +654,14 @@ LASTAR PÅ NYTT</translation>
|
|||||||
<source>Unknown command option</source>
|
<source>Unknown command option</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Warning</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Main Log channel assignments are invalid!</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>ModeDisplay</name>
|
<name>ModeDisplay</name>
|
||||||
|
@ -654,6 +654,14 @@ LASTAR PÅ NYTT</translation>
|
|||||||
<source>Unknown command option</source>
|
<source>Unknown command option</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Warning</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Main Log channel assignments are invalid!</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>ModeDisplay</name>
|
<name>ModeDisplay</name>
|
||||||
|
@ -650,6 +650,14 @@ LISTA</translation>
|
|||||||
<source>Unknown command option</source>
|
<source>Unknown command option</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Warning</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Main Log channel assignments are invalid!</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>ModeDisplay</name>
|
<name>ModeDisplay</name>
|
||||||
|
@ -80,10 +80,21 @@ void MainObject::rmlReceivedData(RDMacro *rml)
|
|||||||
if(rml->argQuantity()==3) { // Start Log
|
if(rml->argQuantity()==3) { // Start Log
|
||||||
if(rml->arg(2).toInt()<air_logs[index]->size()) {
|
if(rml->arg(2).toInt()<air_logs[index]->size()) {
|
||||||
if(rml->arg(2).toInt()>=0) { // Unconditional start
|
if(rml->arg(2).toInt()>=0) { // Unconditional start
|
||||||
air_logs[index]->play(rml->arg(2).toInt(),RDLogLine::StartMacro);
|
if(air_logs[index]->play(rml->arg(2).toInt(),RDLogLine::StartMacro)) {
|
||||||
rda->log(RDConfig::LogInfo,QString().
|
rda->log(RDConfig::LogInfo,QString().
|
||||||
sprintf("started log machine %d at line %d",
|
sprintf("started log machine %d at line %d",
|
||||||
rml->arg(0).toInt(),rml->arg(2).toInt()));
|
rml->arg(0).toInt(),rml->arg(2).toInt()));
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
rda->log(RDConfig::LogWarning,QString().
|
||||||
|
sprintf("1 log machine %d failed to start",
|
||||||
|
rml->arg(0).toInt()));
|
||||||
|
if(rml->echoRequested()) {
|
||||||
|
rml->acknowledge(false);
|
||||||
|
rda->ripc()->sendRml(rml);
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(rml->arg(2).toInt()==-2) { // Start if trans type allows
|
if(rml->arg(2).toInt()==-2) { // Start if trans type allows
|
||||||
// Find first non-running event
|
// Find first non-running event
|
||||||
@ -100,10 +111,21 @@ void MainObject::rmlReceivedData(RDMacro *rml)
|
|||||||
switch(logline->transType()) {
|
switch(logline->transType()) {
|
||||||
case RDLogLine::Play:
|
case RDLogLine::Play:
|
||||||
case RDLogLine::Segue:
|
case RDLogLine::Segue:
|
||||||
air_logs[index]->play(0,RDLogLine::StartMacro);
|
if(air_logs[index]->play(0,RDLogLine::StartMacro)) {
|
||||||
rda->log(RDConfig::LogInfo,QString().
|
rda->log(RDConfig::LogInfo,QString().
|
||||||
sprintf("started log machine %d at line 0",
|
sprintf("started log machine %d at line 0",
|
||||||
rml->arg(0).toInt()));
|
rml->arg(0).toInt()));
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
rda->log(RDConfig::LogWarning,QString().
|
||||||
|
sprintf("2 log machine %d failed to start",
|
||||||
|
rml->arg(0).toInt()));
|
||||||
|
if(rml->echoRequested()) {
|
||||||
|
rml->acknowledge(false);
|
||||||
|
rda->ripc()->sendRml(rml);
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case RDLogLine::Stop:
|
case RDLogLine::Stop:
|
||||||
@ -205,11 +227,19 @@ void MainObject::rmlReceivedData(RDMacro *rml)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(!air_logs[index]->running()) {
|
if(!air_logs[index]->running()) {
|
||||||
if(!air_logs[index]->play(rml->arg(1).toInt(),RDLogLine::StartMacro)) {
|
if(air_logs[index]->play(rml->arg(1).toInt(),RDLogLine::StartMacro)) {
|
||||||
|
rda->log(RDConfig::LogInfo,QString().
|
||||||
|
sprintf("started log machine %d at line %d",
|
||||||
|
rml->arg(0).toInt(),rml->arg(2).toInt()));
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
rda->log(RDConfig::LogWarning,QString().
|
||||||
|
sprintf("3 log machine %d failed to start",
|
||||||
|
rml->arg(0).toInt()));
|
||||||
if(rml->echoRequested()) {
|
if(rml->echoRequested()) {
|
||||||
rml->acknowledge(false);
|
rml->acknowledge(false);
|
||||||
rda->ripc()->sendRml(rml);
|
rda->ripc()->sendRml(rml);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -313,18 +343,46 @@ void MainObject::rmlReceivedData(RDMacro *rml)
|
|||||||
next_line=air_logs[index]->nextLine();
|
next_line=air_logs[index]->nextLine();
|
||||||
if(air_logs[index]->nextLine()>=0) {
|
if(air_logs[index]->nextLine()>=0) {
|
||||||
if(rml->argQuantity()==1) {
|
if(rml->argQuantity()==1) {
|
||||||
air_logs[index]->
|
if(!air_logs[index]->
|
||||||
play(air_logs[index]->nextLine(),RDLogLine::StartMacro);
|
play(air_logs[index]->nextLine(),RDLogLine::StartMacro)) {
|
||||||
|
rda->log(RDConfig::LogWarning,QString().
|
||||||
|
sprintf("4 log machine %d failed to start",
|
||||||
|
rml->arg(0).toInt()));
|
||||||
|
if(rml->echoRequested()) {
|
||||||
|
rml->acknowledge(false);
|
||||||
|
rda->ripc()->sendRml(rml);
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if(rml->argQuantity()==2) {
|
if(rml->argQuantity()==2) {
|
||||||
air_logs[index]->play(air_logs[index]->nextLine(),
|
if(!air_logs[index]->play(air_logs[index]->nextLine(),
|
||||||
RDLogLine::StartMacro,rml->arg(1).toInt()-1);
|
RDLogLine::StartMacro,
|
||||||
|
rml->arg(1).toInt()-1)) {
|
||||||
|
rda->log(RDConfig::LogWarning,QString().
|
||||||
|
sprintf("5 log machine %d failed to start",
|
||||||
|
rml->arg(0).toInt()));
|
||||||
|
if(rml->echoRequested()) {
|
||||||
|
rml->acknowledge(false);
|
||||||
|
rda->ripc()->sendRml(rml);
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
air_logs[index]->
|
if(!air_logs[index]->
|
||||||
play(air_logs[index]->nextLine(),RDLogLine::StartMacro,
|
play(air_logs[index]->nextLine(),RDLogLine::StartMacro,
|
||||||
rml->arg(1).toInt()-1,rml->arg(2).toInt());
|
rml->arg(1).toInt()-1,rml->arg(2).toInt())) {
|
||||||
|
rda->log(RDConfig::LogWarning,QString().
|
||||||
|
sprintf("6 log machine %d failed to start",
|
||||||
|
rml->arg(0).toInt()));
|
||||||
|
if(rml->echoRequested()) {
|
||||||
|
rml->acknowledge(false);
|
||||||
|
rda->ripc()->sendRml(rml);
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
rda->log(RDConfig::LogInfo,QString().
|
rda->log(RDConfig::LogInfo,QString().
|
||||||
|
@ -150,9 +150,17 @@ MainObject::MainObject(QObject *parent)
|
|||||||
int cards[2]={0,0};
|
int cards[2]={0,0};
|
||||||
cards[0]=rda->airplayConf()->virtualCard(i+RD_RDVAIRPLAY_LOG_BASE);
|
cards[0]=rda->airplayConf()->virtualCard(i+RD_RDVAIRPLAY_LOG_BASE);
|
||||||
cards[1]=rda->airplayConf()->virtualCard(i+RD_RDVAIRPLAY_LOG_BASE);
|
cards[1]=rda->airplayConf()->virtualCard(i+RD_RDVAIRPLAY_LOG_BASE);
|
||||||
|
if(rda->station()->cardDriver(cards[0])==RDStation::None) {
|
||||||
|
cards[0]=-1;
|
||||||
|
cards[1]=-1;
|
||||||
|
}
|
||||||
int ports[2]={0,0};
|
int ports[2]={0,0};
|
||||||
ports[0]=rda->airplayConf()->virtualPort(i+RD_RDVAIRPLAY_LOG_BASE);
|
ports[0]=rda->airplayConf()->virtualPort(i+RD_RDVAIRPLAY_LOG_BASE);
|
||||||
ports[1]=rda->airplayConf()->virtualPort(i+RD_RDVAIRPLAY_LOG_BASE);
|
ports[1]=rda->airplayConf()->virtualPort(i+RD_RDVAIRPLAY_LOG_BASE);
|
||||||
|
if((cards[0]<0)||(ports[0]>=rda->station()->cardOutputs(cards[0]))) {
|
||||||
|
ports[0]=-1;
|
||||||
|
ports[1]=-1;
|
||||||
|
}
|
||||||
QString start_rml[2]={"",""};
|
QString start_rml[2]={"",""};
|
||||||
start_rml[0]=rda->airplayConf()->virtualStartRml(i+RD_RDVAIRPLAY_LOG_BASE);
|
start_rml[0]=rda->airplayConf()->virtualStartRml(i+RD_RDVAIRPLAY_LOG_BASE);
|
||||||
start_rml[1]=rda->airplayConf()->virtualStartRml(i+RD_RDVAIRPLAY_LOG_BASE);
|
start_rml[1]=rda->airplayConf()->virtualStartRml(i+RD_RDVAIRPLAY_LOG_BASE);
|
||||||
@ -199,7 +207,7 @@ MainObject::MainObject(QObject *parent)
|
|||||||
//
|
//
|
||||||
air_exit_timer=new QTimer(this);
|
air_exit_timer=new QTimer(this);
|
||||||
connect(air_exit_timer, SIGNAL(timeout()),this,SLOT(exitData()));
|
connect(air_exit_timer, SIGNAL(timeout()),this,SLOT(exitData()));
|
||||||
air_exit_timer->start(100);
|
air_exit_timer->start(1000);
|
||||||
::signal(SIGINT,SigHandler);
|
::signal(SIGINT,SigHandler);
|
||||||
::signal(SIGTERM,SigHandler);
|
::signal(SIGTERM,SigHandler);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user