Skip to content
Permalink
Browse files

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.
  • Loading branch information
cpinkham committed Jul 12, 2012
1 parent 413a8e0 commit e7a6d7e1acd145fb9e7232ad3891b8bd5ce67f12
Showing with 3 additions and 1 deletion.
  1. +3 −1 mythtv/libs/libmyth/programinfo.cpp
@@ -4187,7 +4187,9 @@ void ProgramInfo::MarkAsInUse(bool inuse, QString usedFor)
query.bindValue(":HOSTNAME", gCoreContext->GetHostName());
query.bindValue(":RECUSAGE", inUseForWhat);
query.bindValue(":UPDATETIME", inUseTime);
query.bindValue(":RECHOST", hostname);
query.bindValue(":RECHOST",
hostname.isEmpty() ? gCoreContext->GetHostName()
: hostname);
query.bindValue(":RECDIR", recDir);

if (!query.exec())

0 comments on commit e7a6d7e

Please sign in to comment.
You can’t perform that action at this time.