| 250 | } |
| 251 | |
| 252 | void StreamManager::doAddToXML(std::string &xml) const { |
| 253 | base::MutexLock lock(_mutex); |
| 254 | assert(!_stream.empty()); |
| 255 | |
| 256 | std::size_t i = 0; |
| 257 | for (ScpStream stream : _stream) { |
| 258 | ADD_XML_N_ELEMENT(xml, "stream", i, stream->toXML()); |
| 259 | ++i; |
| 260 | } |
| 261 | #ifdef LIBDVBCSA |
| 262 | ADD_XML_ELEMENT(xml, "decrypt", _decrypt->toXML()); |
| 263 | #endif |
| 264 | } |