X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fnav%2Fcore.cpp;h=062a7d00046a48d7736eb0fd9dae146bf55fcc73;hb=10e7e45ae92d4fe06f70126ed256b87896dbc432;hp=0b690b812b742d40dd31c5ec58eebd0f1c7df994;hpb=8a951b87cc4f6d4db0f1c3c9113a4c0943971ef2;p=vuplus_dvbapp diff --git a/lib/nav/core.cpp b/lib/nav/core.cpp index 0b690b8..062a7d0 100644 --- a/lib/nav/core.cpp +++ b/lib/nav/core.cpp @@ -4,9 +4,9 @@ void eNavigation::serviceEvent(iPlayableService* service, int event) { - if (service != m_runningService) + if (m_runningService && service != m_runningService) { - eDebug("nav: event for other service"); + eDebug("nav: event %d for other service", event); return; } m_event(event); @@ -96,8 +96,11 @@ RESULT eNavigation::stopRecordService(ePtr &service) if (it != m_recordings.end()) { m_recordings.erase(it); + /* send stop event */ + m_record_event(service, iRecordableService::evEnd); return 0; } + eDebug("try to stop non running recording!!"); // this should not happen return -1; }