aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2009-04-19 23:33:35 +0200
committerFelix Domke <tmbinc@elitedvb.net>2009-04-19 23:33:35 +0200
commit2d7f4e102ee3231bdb600b0ac7e2d8f898034b78 (patch)
tree45a92599308726639157bf5d7696bb378d5ef27d /lib
parentc8eff39152f3dd35abcb7b8d31cbea34e20e8457 (diff)
downloadenigma2-2d7f4e102ee3231bdb600b0ac7e2d8f898034b78.tar.gz
enigma2-2d7f4e102ee3231bdb600b0ac7e2d8f898034b78.zip
don't add any source span if no cutlist defined, because we don't have an 'infinite' end yet, which doesn't work on growing files
Diffstat (limited to 'lib')
-rw-r--r--lib/service/servicedvb.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/service/servicedvb.cpp b/lib/service/servicedvb.cpp
index 60fb80ea..44a22ea9 100644
--- a/lib/service/servicedvb.cpp
+++ b/lib/service/servicedvb.cpp
@@ -2441,11 +2441,16 @@ void eDVBServicePlay::cutlistToCuesheet()
std::multiset<cueEntry>::iterator i(m_cue_entries.begin());
+ int have_any_span = 0;
+
while (1)
{
if (i == m_cue_entries.end())
+ {
+ if (!have_any_span)
+ break;
out = length;
- else {
+ } else {
if (i->what == 0) /* in */
{
in = i++->where;
@@ -2469,7 +2474,10 @@ void eDVBServicePlay::cutlistToCuesheet()
out = length;
if (in < out)
+ {
+ have_any_span = 1;
m_cue->addSourceSpan(in, out);
+ }
in = length;