Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksoid <aleksoid@users.sourceforge.net>2010-02-08 02:47:15 +0300
committerAleksoid <aleksoid@users.sourceforge.net>2010-02-08 02:47:15 +0300
commit8121dd5e23c4dfe98c6a7bcc306f96593cc3537c (patch)
tree674f587c0b0fc9b6c5c36f7d12d3155e33720c43 /src/apps/mplayerc/FGManager.cpp
parente0d8de52a037e07e12c4f7129b84b9082268b5bf (diff)
Feature Request #46(patch X-Dron); add number to AudioDevice list;
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1635 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/FGManager.cpp')
-rw-r--r--src/apps/mplayerc/FGManager.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/apps/mplayerc/FGManager.cpp b/src/apps/mplayerc/FGManager.cpp
index 7db68a1c9..e7be86586 100644
--- a/src/apps/mplayerc/FGManager.cpp
+++ b/src/apps/mplayerc/FGManager.cpp
@@ -2510,28 +2510,29 @@ CFGManagerPlayer::CFGManagerPlayer(LPCTSTR pName, LPUNKNOWN pUnk, HWND hWnd)
pFGF->AddType(MEDIATYPE_Video, MEDIASUBTYPE_NULL);
m_transform.AddTail(pFGF);
}
-
- if(s.AudioRendererDisplayName == AUDRNDT_NULL_COMP)
+
+ CString SelAudioRender = s.SelectedAudioRender();
+ if(SelAudioRender == AUDRNDT_NULL_COMP)
{
pFGF = DNew CFGFilterInternal<CNullAudioRenderer>(AUDRNDT_NULL_COMP, MERIT64_ABOVE_DSHOW+2);
pFGF->AddType(MEDIATYPE_Audio, MEDIASUBTYPE_NULL);
m_transform.AddTail(pFGF);
}
- else if(s.AudioRendererDisplayName == AUDRNDT_NULL_UNCOMP)
+ else if(SelAudioRender == AUDRNDT_NULL_UNCOMP)
{
pFGF = DNew CFGFilterInternal<CNullUAudioRenderer>(AUDRNDT_NULL_UNCOMP, MERIT64_ABOVE_DSHOW+2);
pFGF->AddType(MEDIATYPE_Audio, MEDIASUBTYPE_NULL);
m_transform.AddTail(pFGF);
}
- else if(s.AudioRendererDisplayName == AUDRNDT_MPC)
+ else if(SelAudioRender == AUDRNDT_MPC)
{
pFGF = DNew CFGFilterInternal<CMpcAudioRenderer>(AUDRNDT_MPC, MERIT64_ABOVE_DSHOW+2);
pFGF->AddType(MEDIATYPE_Audio, MEDIASUBTYPE_NULL);
m_transform.AddTail(pFGF);
}
- else if(!s.AudioRendererDisplayName.IsEmpty())
+ else if(SelAudioRender!="")
{
- pFGF = DNew CFGFilterRegistry(s.AudioRendererDisplayName, m_armerit);
+ pFGF = DNew CFGFilterRegistry(SelAudioRender, m_armerit);
pFGF->AddType(MEDIATYPE_Audio, MEDIASUBTYPE_NULL);
m_transform.AddTail(pFGF);
}