zapit/include/zapit/frontend_c.h: prevent setTsidOnid() to change

current transponder id on locked frontend:
fix case when PiP started while no live channel running (ie playback mode), return to live playback mode
can break running recording
This commit is contained in:
[CST] Focus
2014-02-04 17:33:41 +04:00
parent f9ad30f183
commit b992366b1c

View File

@@ -225,7 +225,11 @@ class CFrontend
return (currentTransponder.TP_id == 0)
|| (tpid == currentTransponder.TP_id);
}
void setTsidOnid(transponder_id_t newid) { currentTransponder.TP_id = newid; }
void setTsidOnid(transponder_id_t newid)
{
if (!usecount)
currentTransponder.TP_id = newid;
}
uint32_t getRate ();
void Lock();