void HDHRStreamHandler::Close(void) { if (_hdhomerun_device) { TuneChannel("none"); hdhomerun_device_destroy(_hdhomerun_device); _hdhomerun_device = NULL; } }
bool HDHRStreamHandler::EnterPowerSavingMode(void) { QMutexLocker locker(&_listener_lock); if (!_stream_data_list.empty()) { VERBOSE(VB_RECORD, LOC + "Ignoring request - video streaming active"); return false; } else { locker.unlock(); // _listener_lock return TuneChannel("none"); } }