16 #define LOC QString("HLSSH[%1](%2): ").arg(m_inputId).arg(m_device)
32 QMap<QString,HLSStreamHandler*>::iterator it =
s_hlshandlers.find(devkey);
41 LOG(VB_RECORD, LOG_INFO,
42 QString(
"HLSSH[%1]: Creating new stream handler %2 for %3")
43 .arg(QString::number(inputid), devkey, tuning.
GetDeviceName()));
49 LOG(VB_RECORD, LOG_INFO,
50 QString(
"HLSSH[%1]: Using existing stream handler %2 for %3")
51 .arg(QString::number(inputid), devkey, tuning.
GetDeviceName()) +
52 QString(
" (%1 in use)").arg(rcount));
68 LOG(VB_RECORD, LOG_INFO, QString(
"HLSSH[%1]: Return(%2) has %3 handlers")
69 .arg(inputid).arg(devname).arg(*rit));
78 QMap<QString,HLSStreamHandler*>::iterator it =
s_hlshandlers.find(devname);
81 LOG(VB_RECORD, LOG_INFO, QString(
"HLSSH[%1]: Closing handler for %2")
82 .arg(inputid).arg(devname));
84 LOG(VB_RECORD, LOG_DEBUG, QString(
"HLSSH[%1]: handler for %2 stopped")
85 .arg(inputid).arg(devname));
91 LOG(VB_GENERAL, LOG_ERR,
92 QString(
"HLSSH[%1] Error: Couldn't find handler for %2")
93 .arg(inputid).arg(devname));
103 LOG(VB_GENERAL, LOG_INFO,
LOC +
"ctor");
110 LOG(VB_CHANNEL, LOG_INFO,
LOC +
"dtor");
123 std::chrono::milliseconds open_sleep = 500ms;
125 LOG(VB_GENERAL, LOG_INFO,
LOC +
"run() -- begin");
133 qint64 remainder = 0;
142 std::this_thread::sleep_for(open_sleep);
143 if (open_sleep < 20s)
162 LOG(VB_RECORD, LOG_ERR,
LOC +
"HLSReader failed");
175 std::this_thread::sleep_for(nil_cnt * 250ms);
182 LOG(VB_RECORD, LOG_INFO,
LOC +
183 QString(
"Packet not starting with SYNC Byte (got 0x%1)")
196 if (size > remainder)
200 LOG(VB_RECORD, LOG_INFO,
LOC +
201 QString(
"data_length = %1 remainder = %2")
202 .arg(size).arg(remainder));
206 std::this_thread::sleep_for(1s);
209 LOG(VB_RECORD, LOG_DEBUG,
LOC +
210 QString(
"Requested %1 bytes, got %2 bytes.")
213 std::this_thread::sleep_for(10ms);
217 std::this_thread::sleep_for(1ms);
226 LOG(VB_GENERAL, LOG_INFO,
LOC +
"run() -- done");