Skip to content

Commit 50cca9d

Browse files
authored
Merge pull request #4301 from AbuBaniaz/audio_selection
Fix audio track display after selection when SoftDecoder is active
2 parents 1b89d59 + ab437d2 commit 50cca9d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/service/servicedvb.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2301,6 +2301,9 @@ RESULT eDVBServicePlay::selectTrack(unsigned int i)
23012301
if (i >= program.audioStreams.size())
23022302
return -2;
23032303

2304+
// Update m_current_audio_pid so getCurrentTrack() returns the correct index
2305+
m_current_audio_pid = program.audioStreams[i].pid;
2306+
23042307
// Update audio cache in eDVBService
23052308
updateAudioCache(program.audioStreams[i].pid, program.audioStreams[i].type);
23062309

0 commit comments

Comments
 (0)