From 2d30f6d03db0b0da0b3677d04180c1ba56709a6c Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Thu, 24 Aug 2006 13:09:29 +0000 Subject: [PATCH] always return currently active apid --- lib/service/servicedvb.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/service/servicedvb.cpp b/lib/service/servicedvb.cpp index f175b07e..99474a86 100644 --- a/lib/service/servicedvb.cpp +++ b/lib/service/servicedvb.cpp @@ -1194,7 +1194,7 @@ int eDVBServicePlay::getInfo(int w) case sIsCrypted: return program.isCrypted(); case sVideoPID: if (program.videoStreams.empty()) return -1; return program.videoStreams[0].pid; case sVideoType: if (program.videoStreams.empty()) return -1; return program.videoStreams[0].type; - case sAudioPID: if (program.audioStreams.empty()) return -1; return program.audioStreams[m_current_audio_stream].pid; + case sAudioPID: if (program.audioStreams.empty()) return -1; return program.audioStreams[0].pid; case sPCRPID: return program.pcrPid; case sPMTPID: return program.pmtPid; case sTXTPID: return program.textPid; @@ -1322,8 +1322,6 @@ int eDVBServicePlay::selectAudioStream(int i) } } - m_current_audio_stream = i; - return 0; } @@ -1782,7 +1780,6 @@ void eDVBServicePlay::updateDecoder() m_decoder->setPCMDelay(pcm_delay == -1 ? 0 : pcm_delay); m_decoder->setVideoPID(vpid, vpidtype); - m_current_audio_stream = 0; m_decoder->setAudioPID(apid, apidtype); if (!(m_is_pvr || m_timeshift_active || !m_is_primary)) { -- 2.30.2