Skip to content

Commit e7a6d7e

Browse files
committed
Squelch an inuseprograms DB warning during HLS transcode.
If the file's hostname isn't known when we go to insert into inuseprograms, use our own hostname for the rechost column. Closes #10520.
1 parent 413a8e0 commit e7a6d7e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mythtv/libs/libmyth/programinfo.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4187,7 +4187,9 @@ void ProgramInfo::MarkAsInUse(bool inuse, QString usedFor)
41874187
query.bindValue(":HOSTNAME", gCoreContext->GetHostName());
41884188
query.bindValue(":RECUSAGE", inUseForWhat);
41894189
query.bindValue(":UPDATETIME", inUseTime);
4190-
query.bindValue(":RECHOST", hostname);
4190+
query.bindValue(":RECHOST",
4191+
hostname.isEmpty() ? gCoreContext->GetHostName()
4192+
: hostname);
41914193
query.bindValue(":RECDIR", recDir);
41924194

41934195
if (!query.exec())

0 commit comments

Comments
 (0)