git.cweiske.de
/
enigma2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c8eff39
)
don't add any source span if no cutlist defined, because we don't have an 'infinite...
author
Felix Domke
<tmbinc@elitedvb.net>
Sun, 19 Apr 2009 21:33:35 +0000
(23:33 +0200)
committer
Felix Domke
<tmbinc@elitedvb.net>
Sun, 19 Apr 2009 21:33:35 +0000
(23:33 +0200)
lib/service/servicedvb.cpp
patch
|
blob
|
history
diff --git
a/lib/service/servicedvb.cpp
b/lib/service/servicedvb.cpp
index 60fb80ea40d009e0e8b1d4b5f341bce332cab405..44a22ea9265dd8249968d61b8f5e1987f03cf177 100644
(file)
--- 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());
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;
@@
-2469,7
+2474,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;