From 4ef07363db12de1a222ba0042696539c4d3aa0e8 Mon Sep 17 00:00:00 2001 From: focus Date: Thu, 26 Jan 2012 13:09:49 +0000 Subject: [PATCH] Fix DD audio pid auto-selection if DD prefered is set git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2076 e54a6e83-5905-42d5-8d5c-058d10e6a962 --- src/daemonc/remotecontrol.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/daemonc/remotecontrol.cpp b/src/daemonc/remotecontrol.cpp index 0092df048..3399d7b0b 100644 --- a/src/daemonc/remotecontrol.cpp +++ b/src/daemonc/remotecontrol.cpp @@ -505,9 +505,11 @@ void CRemoteControl::processAPIDnames() if(!strstr(current_PIDs.APIDs[count].desc, " (AC3)")) strncat(current_PIDs.APIDs[count].desc, " (AC3)", DESC_MAX_LEN - strlen(current_PIDs.APIDs[count].desc)); has_ac3 = true; - if((strlen( current_PIDs.APIDs[count].desc ) == 3) && g_settings.audio_DolbyDigital && (ac3_found < 0)) + if(g_settings.audio_DolbyDigital && (ac3_found < 0)) ac3_found = count; } + else if (current_PIDs.APIDs[count].is_aac && !strstr(current_PIDs.APIDs[count].desc, " (AAC)")) + strncat(current_PIDs.APIDs[count].desc, " (AAC)", DESC_MAX_LEN - strlen(current_PIDs.APIDs[count].desc)); } if ( has_unresolved_ctags )