From: ghost Date: Tue, 5 Jan 2010 17:50:00 +0000 (+0100) Subject: servicedvb.cpp: fix handling for single IN cut (needed when only the start of a movie... X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=commitdiff_plain;h=8c0e6b4a527f5666195683b7cc28c278a636da0d servicedvb.cpp: fix handling for single IN cut (needed when only the start of a movie is cutted away) --- diff --git a/lib/service/servicedvb.cpp b/lib/service/servicedvb.cpp index c7bb5d9..615329c 100644 --- a/lib/service/servicedvb.cpp +++ b/lib/service/servicedvb.cpp @@ -2576,7 +2576,7 @@ void eDVBServicePlay::cutlistToCuesheet() { if (i == m_cue_entries.end()) { - if (!have_any_span) + if (!have_any_span && !in) break; out = length; } else { @@ -2606,6 +2606,7 @@ void eDVBServicePlay::cutlistToCuesheet() { have_any_span = 1; m_cue->addSourceSpan(in, out); + in = out = 0; } in = length;