servicedvb.cpp: fix handling for single IN cut (needed when only the start of a movie...
authorghost <andreas.monzner@multimedia-labs.de>
Tue, 5 Jan 2010 17:50:00 +0000 (18:50 +0100)
committerghost <andreas.monzner@multimedia-labs.de>
Tue, 5 Jan 2010 17:50:21 +0000 (18:50 +0100)
lib/service/servicedvb.cpp

index c7bb5d992fb27b0cd04264832888b6bfaf89030d..615329c9b5d1cf064a08b5f95a246ad6d78c5335 100644 (file)
@@ -2576,7 +2576,7 @@ void eDVBServicePlay::cutlistToCuesheet()
        {
                if (i == m_cue_entries.end())
                {
        {
                if (i == m_cue_entries.end())
                {
-                       if (!have_any_span)
+                       if (!have_any_span && !in)
                                break;
                        out = length;
                } else {
                                break;
                        out = length;
                } else {
@@ -2606,6 +2606,7 @@ void eDVBServicePlay::cutlistToCuesheet()
                {
                        have_any_span = 1;
                        m_cue->addSourceSpan(in, out);
                {
                        have_any_span = 1;
                        m_cue->addSourceSpan(in, out);
+                       in = out = 0;
                }
                
                in = length;
                }
                
                in = length;