projects
/
vuplus_dvbapp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3a65450
)
servicedvb.cpp: small cleanup
author
ghost
<andreas.monzner@multimedia-labs.de>
Mon, 21 Dec 2009 19:32:41 +0000
(20:32 +0100)
committer
ghost
<andreas.monzner@multimedia-labs.de>
Mon, 21 Dec 2009 19:32:41 +0000
(20:32 +0100)
lib/service/servicedvb.cpp
patch
|
blob
|
history
diff --git
a/lib/service/servicedvb.cpp
b/lib/service/servicedvb.cpp
index
77e2bd4
..
e6af1e6
100644
(file)
--- a/
lib/service/servicedvb.cpp
+++ b/
lib/service/servicedvb.cpp
@@
-2300,6
+2300,7
@@
void eDVBServicePlay::switchToTimeshift()
void eDVBServicePlay::updateDecoder()
{
int vpid = -1, vpidtype = -1, pcrpid = -1, tpid = -1, achannel = -1, ac3_delay=-1, pcm_delay=-1;
void eDVBServicePlay::updateDecoder()
{
int vpid = -1, vpidtype = -1, pcrpid = -1, tpid = -1, achannel = -1, ac3_delay=-1, pcm_delay=-1;
+ bool mustPlay = false;
eDVBServicePMTHandler &h = m_timeshift_active ? m_service_handler_timeshift : m_service_handler;
eDVBServicePMTHandler &h = m_timeshift_active ? m_service_handler_timeshift : m_service_handler;
@@
-2380,11
+2381,10
@@
void eDVBServicePlay::updateDecoder()
Py_DECREF(subs);
}
}
Py_DECREF(subs);
}
}
- m_decoder->play(); /* pids will be set later */
}
if (m_cue)
m_cue->setDecodingDemux(m_decode_demux, m_decoder);
}
if (m_cue)
m_cue->setDecodingDemux(m_decode_demux, m_decoder);
- m
_decoder->play(); /* pids will be set later. */
+ m
ustPlay = true;
}
m_timeshift_changed = 0;
}
m_timeshift_changed = 0;
@@
-2449,7
+2449,11
@@
void eDVBServicePlay::updateDecoder()
m_decoder->setRadioPic(radio_pic);
}
m_decoder->setRadioPic(radio_pic);
}
- m_decoder->set();
+ if (mustPlay)
+ m_decoder->play();
+ else
+ m_decoder->set();
+
m_decoder->setAudioChannel(achannel);
/* don't worry about non-existing services, nor pvr services */
m_decoder->setAudioChannel(achannel);
/* don't worry about non-existing services, nor pvr services */