Added a proxy in Output for getting the host (by Erik Zandvliet)
This commit is contained in:
parent
2d78e1e5f1
commit
d56e7f1408
7 changed files with 21 additions and 7 deletions
|
@ -111,6 +111,14 @@ namespace Mist {
|
|||
selectDefaultTracks();
|
||||
sought = false;
|
||||
}
|
||||
|
||||
std::string Output::getConnectedHost(){
|
||||
return myConn.getHost();
|
||||
}
|
||||
|
||||
std::string Output::getConnectedBinHost(){
|
||||
return myConn.getBinHost();
|
||||
}
|
||||
|
||||
/// Connects or reconnects to the stream.
|
||||
/// Assumes streamName class member has been set already.
|
||||
|
@ -665,7 +673,7 @@ namespace Mist {
|
|||
IPC::statExchange tmpEx(statsPage.getData());
|
||||
tmpEx.now(now);
|
||||
if (setHost){
|
||||
tmpEx.host(myConn.getBinHost());
|
||||
tmpEx.host(getConnectedBinHost());
|
||||
setHost = false;
|
||||
}
|
||||
tmpEx.crc(crc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue