From 6f36d3faffca3da47f7e4bf81df208b1edbcf01c Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Tue, 6 Nov 2007 21:28:31 +0000 Subject: [PATCH] Audio selector fix --- player.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/player.cc b/player.cc index 9d77ab6..06e0431 100644 --- a/player.cc +++ b/player.cc @@ -167,7 +167,10 @@ bool* Player::getDemuxerAc3AudioChannels() int Player::getCurrentAudioChannel() { - return demuxer->getselAudioChannel(); + if (isRecording) + return demuxer->getselAudioChannel(); + else + return ((DemuxerTS*)demuxer)->getAID(); } void Player::setAudioChannel(int newChannel) -- 2.39.5