use green to add a timer directly from the epgSelection
[enigma2.git] / lib / dvb / dvbtime.cpp
index bfc2c87..dc98a6d 100644 (file)
@@ -212,7 +212,7 @@ void eDVBLocalTimeHandler::updateTime( time_t tp_time, eDVBChannel *chan )
                                        settimeofday(&tnow,0);
                                        for (ePtrList<eMainloop>::iterator it(eMainloop::existing_loops)
                                                ;it != eMainloop::existing_loops.end(); ++it)
-                                               it->setTimerOffset(m_time_difference);
+                                               it->addTimeOffset(m_time_difference);
                                        m_time_difference=0;
                                }
                                else if ( !m_time_difference )
@@ -333,7 +333,7 @@ void eDVBLocalTimeHandler::updateTime( time_t tp_time, eDVBChannel *chan )
                        settimeofday(&tnow,0);
                        for (ePtrList<eMainloop>::iterator it(eMainloop::existing_loops)
                                ;it != eMainloop::existing_loops.end(); ++it)
-                               it->setTimerOffset(m_time_difference);
+                               it->addTimeOffset(m_time_difference);
                        m_time_difference=0;
                }
 
@@ -357,7 +357,7 @@ void eDVBLocalTimeHandler::DVBChannelAdded(eDVBChannel *chan)
 {
        if ( chan )
        {
-               eDebug("[eDVBLocalTimerHandler] add channel %p", chan);
+//             eDebug("[eDVBLocalTimerHandler] add channel %p", chan);
                std::pair<std::map<iDVBChannel*, channel_data>::iterator, bool> tmp =
                        m_knownChannels.insert( std::pair<iDVBChannel*, channel_data>(chan, channel_data()) );
                tmp.first->second.tdt = new TDT(chan);
@@ -376,12 +376,6 @@ void eDVBLocalTimeHandler::DVBChannelStateChanged(iDVBChannel *chan)
                chan->getState(state);
                switch (state)
                {
-                       case iDVBChannel::state_idle:
-                               break;
-                       case iDVBChannel::state_tuning:
-                               break;
-                       case iDVBChannel::state_unavailable:
-                               break;
                        case iDVBChannel::state_ok:
                                eDebug("[eDVBLocalTimerHandler] channel %p running", chan);
                                it->second.tdt->start();