Commit 19cca262 by 景炳强

fixed udp listening port

parent 90384aed
......@@ -295,6 +295,9 @@ void DeckLinkOutputPage::RequestedDeviceGranted(ComPtr<IDeckLink>& device)
Process->exit();
//Process->SetUpUDP("127.0.0.1", PortNumLineEdit->text());
qDebug() << "udp port " << PortNumLineEdit->text() << "\n";
Process->SetUpUDP("0.0.0.0", PortNumLineEdit->text());
Process->start();
......@@ -383,7 +386,9 @@ void DeckLinkOutputPage::DeleyTimeChanged(QString text)
void DeckLinkOutputPage::ObjectNameChanged(const QString& newName)
{
START_SLOT_TIME_COUNTER
PortNumLineEdit->setText(QString::number(5000 + QString(newName.at(newName.size() - 1)).toInt()));
qDebug() << "objct name changed " << newName << "\n";
PortNumLineEdit->setText(QString::number(5000 + QString(newName.at(newName.size() - 1)).toInt() - 2 ));
END_SLOT_TIME_COUNTER
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment