[mythtv-commits] Ticket #12161: mythcommflag - throwing database errors
MythTV
noreply at mythtv.org
Mon Jun 2 19:50:40 UTC 2014
#12161: mythcommflag - throwing database errors
-----------------------------------+----------------------------
Reporter: mythtv@… | Owner: jyavenard
Type: Bug Report - General | Status: accepted
Priority: major | Milestone: unknown
Component: MythTV - Mythcommflag | Version: 0.27-fixes
Severity: high | Resolution:
Keywords: | Ticket locked: 0
-----------------------------------+----------------------------
Comment (by jyavenard):
please try the following patch:
{{{
diff --git a/mythtv/libs/libmyth/programinfo.cpp
b/mythtv/libs/libmyth/programinfo.cpp
index 35e7ff8..8c891f0 100644
--- a/mythtv/libs/libmyth/programinfo.cpp
+++ b/mythtv/libs/libmyth/programinfo.cpp
@@ -3640,6 +3640,9 @@ void ProgramInfo::SavePositionMap(
return;
}
+ if (posMap.isEmpty())
+ return;
+
MSqlQuery query(MSqlQuery::InitCon());
QString comp;
@@ -3738,6 +3741,9 @@ void ProgramInfo::SavePositionMap(
void ProgramInfo::SavePositionMapDelta(
frm_pos_map_t &posMap, MarkTypes type) const
{
+ if (posMap.isEmpty())
+ return;
+
if (positionMapDBReplacement)
{
QMutexLocker locker(positionMapDBReplacement->lock);
}}}
--
Ticket URL: <https://code.mythtv.org/trac/ticket/12161#comment:3>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list