* @brief Destroys the engine for the source (source 0 is reset in place). */
| 442 | * @brief Destroys the engine for the source (source 0 is reset in place). |
| 443 | */ |
| 444 | void DataModel::FrameParser::clearSourceEngine(int sourceId) |
| 445 | { |
| 446 | auto it = m_engines.find(sourceId); |
| 447 | if (it == m_engines.end()) |
| 448 | return; |
| 449 | |
| 450 | if (sourceId == 0) { |
| 451 | it->second->reset(); |
| 452 | return; |
| 453 | } |
| 454 | |
| 455 | m_engines.erase(it); |
| 456 | refreshEngineCaches(); |
| 457 | } |
| 458 | |
| 459 | //-------------------------------------------------------------------------------------------------- |
| 460 | // Parsing dispatch |