diff options
| author | ghost <andreas.monzner@multimedia-labs.de> | 2011-02-16 14:36:53 +0100 |
|---|---|---|
| committer | ghost <andreas.monzner@multimedia-labs.de> | 2011-02-16 14:36:53 +0100 |
| commit | 0c417aee83bac3ab0a70d5e0b3360d18b3663a23 (patch) | |
| tree | 4fbc37d651cd2e7e3f545b8077e64b7d69c1064d /lib/dvb/pmt.cpp | |
| parent | dec9693d8437a31dab8e4010b33b57e1476a315c (diff) | |
| parent | 2c4829db1915266f51900d5da0e98173c5b87148 (diff) | |
| download | enigma2-0c417aee83bac3ab0a70d5e0b3360d18b3663a23.tar.gz enigma2-0c417aee83bac3ab0a70d5e0b3360d18b3663a23.zip | |
Merge branch 'bug_672_removed_pvr_device'
Conflicts:
lib/dvb/dvb.cpp
Diffstat (limited to 'lib/dvb/pmt.cpp')
| -rw-r--r-- | lib/dvb/pmt.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/dvb/pmt.cpp b/lib/dvb/pmt.cpp index 4ad4e76f..e5e63316 100644 --- a/lib/dvb/pmt.cpp +++ b/lib/dvb/pmt.cpp @@ -44,8 +44,15 @@ void eDVBServicePMTHandler::channelStateChanged(iDVBChannel *channel) && (state == iDVBChannel::state_ok) && (!m_demux)) { if (m_channel) - if (m_channel->getDemux(m_demux, (!m_use_decode_demux) ? 0 : iDVBChannel::capDecode)) + { + if (m_pvr_demux_tmp) + { + m_demux = m_pvr_demux_tmp; + m_pvr_demux_tmp = NULL; + } + else if (m_channel->getDemux(m_demux, (!m_use_decode_demux) ? 0 : iDVBChannel::capDecode)) eDebug("Allocating %s-decoding a demux for now tuned-in channel failed.", m_use_decode_demux ? "" : "non-"); + } serviceEvent(eventTuned); @@ -842,7 +849,10 @@ int eDVBServicePMTHandler::tuneExt(eServiceReferenceDVB &ref, int use_decode_dem if (m_pvr_channel) { m_pvr_channel->setCueSheet(cue); - if (source) + + if (m_pvr_channel->getDemux(m_pvr_demux_tmp, (!m_use_decode_demux) ? 0 : iDVBChannel::capDecode)) + eDebug("Allocating %s-decoding a demux for PVR channel failed.", m_use_decode_demux ? "" : "non-"); + else if (source) m_pvr_channel->playSource(source, streaminfo_file); else m_pvr_channel->playFile(ref.path.c_str()); |
