add 16:9 letterbox mode
[enigma2.git] / lib / service / servicedvb.cpp
index db7df6b46f1c5b47876e69300f1ed77c8f8f6e4d..173f471bf733f65362395e54443e4503b4cc3a35 100644 (file)
@@ -1111,7 +1111,7 @@ void eDVBServicePlay::serviceEventTimeshift(int event)
                m_event((iPlayableService*)this, evSOF);
                break;
        case eDVBServicePMTHandler::eventEOF:
-               if (!m_is_paused)
+               if ((!m_is_paused) && (m_skipmode >= 0))
                        switchToLive();
                break;
        }
@@ -1177,12 +1177,15 @@ RESULT eDVBServicePlay::stop()
                        
                        if (getLength(length))
                                length = 0;
-
-                       int perc = play_position * 100LL / length;
                        
-                               /* only store last play position when between 5% and 95% */
-                       if ((5 < perc) && (perc < 95))
-                               m_cue_entries.insert(cueEntry(play_position, 3)); /* last play position */
+                       if (length)
+                       {
+                               int perc = play_position * 100LL / length;
+                       
+                                       /* only store last play position when between 5% and 95% */
+                               if ((5 < perc) && (perc < 95))
+                                       m_cue_entries.insert(cueEntry(play_position, 3)); /* last play position */
+                       }
                        m_cuesheet_changed = 1;
                }
        }