Fix for switching to ac3 pid at second call

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@363 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Branch: ni/coolstream
Commit: 2d7b279e5b
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2010-02-17 (Wed, 17 Feb 2010)



------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2010-02-17 13:26:13 +00:00
parent 60c5e73bd4
commit 21cfc23c1c

View File

@@ -472,7 +472,7 @@ void CRemoteControl::processAPIDnames()
{ {
strncat(current_PIDs.APIDs[count].desc, " (AC3)", 25); strncat(current_PIDs.APIDs[count].desc, " (AC3)", 25);
has_ac3 = true; has_ac3 = true;
if(g_settings.audio_DolbyDigital && (ac3_found < 0)) if((strlen( current_PIDs.APIDs[count].desc ) == 3) && g_settings.audio_DolbyDigital && (ac3_found < 0))
ac3_found = count; ac3_found = count;
} }
} }