projects
/
vuplus_dvbapp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of /home/tmbinc/enigma2-git
[vuplus_dvbapp]
/
lib
/
service
/
servicedvb.cpp
diff --git
a/lib/service/servicedvb.cpp
b/lib/service/servicedvb.cpp
index
b3ce13d
..
0e6229c
100644
(file)
--- a/
lib/service/servicedvb.cpp
+++ b/
lib/service/servicedvb.cpp
@@
-2444,11
+2444,16
@@
void eDVBServicePlay::cutlistToCuesheet()
std::multiset<cueEntry>::iterator i(m_cue_entries.begin());
std::multiset<cueEntry>::iterator i(m_cue_entries.begin());
+ int have_any_span = 0;
+
while (1)
{
if (i == m_cue_entries.end())
while (1)
{
if (i == m_cue_entries.end())
+ {
+ if (!have_any_span)
+ break;
out = length;
out = length;
- else {
+
}
else {
if (i->what == 0) /* in */
{
in = i++->where;
if (i->what == 0) /* in */
{
in = i++->where;
@@
-2472,7
+2477,10
@@
void eDVBServicePlay::cutlistToCuesheet()
out = length;
if (in < out)
out = length;
if (in < out)
+ {
+ have_any_span = 1;
m_cue->addSourceSpan(in, out);
m_cue->addSourceSpan(in, out);
+ }
in = length;
in = length;