mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-15 20:29:58 +01:00
Improved SRT Receiver source
Failure cause to RETRY to connect. Info visitor informs on status of connection. Icon associated to SRT Broadcast icon.
This commit is contained in:
@@ -433,15 +433,27 @@ void InfoVisitor::visit (SrtReceiverSource& s)
|
||||
if (stm->failed()) {
|
||||
oss << s.uri() << std::endl << stm->log();
|
||||
}
|
||||
else {
|
||||
if (brief_)
|
||||
else if (stm->isOpen()) {
|
||||
if (brief_) {
|
||||
oss << s.uri() << std::endl;
|
||||
oss << "Connected." << std::endl;
|
||||
}
|
||||
else {
|
||||
oss << "SRT Receiver " << s.uri() << std::endl;
|
||||
oss << "H264 (" << stm->decoderName() << ")" << std::endl;
|
||||
oss << "H264 (" << stm->decoderName() << ")" ;
|
||||
oss << stm->width() << " x " << stm->height();
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (brief_) {
|
||||
oss << s.uri() << std::endl;
|
||||
oss << "Trying to connect..." << std::endl;
|
||||
}
|
||||
else {
|
||||
oss << "SRT Receiver " << s.uri() << std::endl;
|
||||
oss << "Connecting...";
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
oss << "Undefined";
|
||||
|
||||
Reference in New Issue
Block a user