mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
* Commit 295efb1
: Fix delete query when multiple same channelid
This commit is contained in:
@@ -1096,6 +1096,18 @@ bool CRecordManager::Stop(const t_channel_id channel_id)
|
|||||||
return (inst != NULL);
|
return (inst != NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool CRecordManager::IsRecording(const CTimerd::RecordingStopInfo * recinfo)
|
||||||
|
{
|
||||||
|
bool ret = false;
|
||||||
|
mutex.lock();
|
||||||
|
CRecordInstance * inst = FindInstanceID(recinfo->eventID);
|
||||||
|
if(inst != NULL && recinfo->eventID == inst->GetRecordingId())
|
||||||
|
ret = true;
|
||||||
|
mutex.unlock();
|
||||||
|
printf("[%s] eventID: %d, channel_id: 0x%llx, ret: %d\n", __FUNCTION__, recinfo->eventID, recinfo->channel_id, ret);
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
bool CRecordManager::Stop(const CTimerd::RecordingStopInfo * recinfo)
|
bool CRecordManager::Stop(const CTimerd::RecordingStopInfo * recinfo)
|
||||||
{
|
{
|
||||||
bool ret = false;
|
bool ret = false;
|
||||||
|
@@ -187,6 +187,7 @@ class CRecordManager : public CMenuTarget /*, public CChangeObserver*/
|
|||||||
bool Record(const t_channel_id channel_id, const char * dir = NULL, bool timeshift = false);
|
bool Record(const t_channel_id channel_id, const char * dir = NULL, bool timeshift = false);
|
||||||
bool Stop(const t_channel_id channel_id);
|
bool Stop(const t_channel_id channel_id);
|
||||||
bool Stop(const CTimerd::RecordingStopInfo * recinfo);
|
bool Stop(const CTimerd::RecordingStopInfo * recinfo);
|
||||||
|
bool IsRecording(const CTimerd::RecordingStopInfo * recinfo);
|
||||||
bool Update(const t_channel_id channel_id);
|
bool Update(const t_channel_id channel_id);
|
||||||
bool ShowMenu(void);
|
bool ShowMenu(void);
|
||||||
bool AskToStop(const t_channel_id channel_id, const int recid = 0);
|
bool AskToStop(const t_channel_id channel_id, const int recid = 0);
|
||||||
|
@@ -574,6 +574,10 @@ int CTimerList::show()
|
|||||||
{
|
{
|
||||||
bool killTimer = true;
|
bool killTimer = true;
|
||||||
if (CRecordManager::getInstance()->RecordingStatus(timerlist[selected].channel_id)) {
|
if (CRecordManager::getInstance()->RecordingStatus(timerlist[selected].channel_id)) {
|
||||||
|
CTimerd::RecordingStopInfo recinfo;
|
||||||
|
recinfo.channel_id = timerlist[selected].channel_id;
|
||||||
|
recinfo.eventID = timerlist[selected].eventID;
|
||||||
|
if (CRecordManager::getInstance()->IsRecording(&recinfo)) {
|
||||||
std::string title = "";
|
std::string title = "";
|
||||||
char buf1[1024];
|
char buf1[1024];
|
||||||
CEPGData epgdata;
|
CEPGData epgdata;
|
||||||
@@ -588,6 +592,7 @@ int CTimerList::show()
|
|||||||
update = false;
|
update = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (killTimer) {
|
if (killTimer) {
|
||||||
Timer->removeTimerEvent(timerlist[selected].eventID);
|
Timer->removeTimerEvent(timerlist[selected].eventID);
|
||||||
skipEventID=timerlist[selected].eventID;
|
skipEventID=timerlist[selected].eventID;
|
||||||
|
Reference in New Issue
Block a user