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>2012-02-10 07:31:53 +0400
committerAleksoid <aleksoid@users.sourceforge.net>2012-02-10 07:31:53 +0400
commit3363de2bcd8865d704f7fa490870b4ecdadf015b (patch)
tree02d5a0170740796361fac47e76c3d3eadb5dd761 /src/filters/source/ShoutcastSource
parent2a26861c85decea984fcea735052a17de499a1c7 (diff)
Change : Friendly name for source filters;
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@4054 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/source/ShoutcastSource')
-rw-r--r--src/filters/source/ShoutcastSource/ShoutcastSource.cpp15
-rw-r--r--src/filters/source/ShoutcastSource/ShoutcastSource.h5
2 files changed, 19 insertions, 1 deletions
diff --git a/src/filters/source/ShoutcastSource/ShoutcastSource.cpp b/src/filters/source/ShoutcastSource/ShoutcastSource.cpp
index cd12205de..73dde81fc 100644
--- a/src/filters/source/ShoutcastSource/ShoutcastSource.cpp
+++ b/src/filters/source/ShoutcastSource/ShoutcastSource.cpp
@@ -86,7 +86,7 @@ const AMOVIESETUP_PIN sudOpPin[] = {
};
const AMOVIESETUP_FILTER sudFilter[] = {
- {&__uuidof(CShoutcastSource), L"MPC - ShoutcastSource", MERIT_NORMAL, countof(sudOpPin), sudOpPin, CLSID_LegacyAmFilterCategory}
+ {&__uuidof(CShoutcastSource), ShoutcastSourceName, MERIT_NORMAL, countof(sudOpPin), sudOpPin, CLSID_LegacyAmFilterCategory}
};
CFactoryTemplate g_Templates[] = {
@@ -240,6 +240,19 @@ STDMETHODIMP CShoutcastSource::get_Title(BSTR* pbstrTitle)
return E_UNEXPECTED;
}
+STDMETHODIMP CShoutcastSource::QueryFilterInfo(FILTER_INFO* pInfo)
+{
+ CheckPointer(pInfo, E_POINTER);
+ ValidateReadWritePtr(pInfo, sizeof(FILTER_INFO));
+ wcscpy(pInfo->achName, ShoutcastSourceName);
+ pInfo->pGraph = m_pGraph;
+ if (m_pGraph) {
+ m_pGraph->AddRef();
+ }
+
+ return S_OK;
+}
+
// CShoutcastStream
CShoutcastStream::CShoutcastStream(const WCHAR* wfn, CShoutcastSource* pParent, HRESULT* phr)
diff --git a/src/filters/source/ShoutcastSource/ShoutcastSource.h b/src/filters/source/ShoutcastSource/ShoutcastSource.h
index 405293f1a..06779037a 100644
--- a/src/filters/source/ShoutcastSource/ShoutcastSource.h
+++ b/src/filters/source/ShoutcastSource/ShoutcastSource.h
@@ -27,6 +27,8 @@
#include <afxsock.h>
#include <qnetwork.h>
+#define ShoutcastSourceName L"MPC ShoutCast Source"
+
class __declspec(uuid("68F540E9-766F-44d2-AB07-E26CC6D27A79"))
CShoutcastSource
: public CSource
@@ -105,6 +107,9 @@ public:
STDMETHODIMP get_MoreInfoText(BSTR* pbstrMoreInfoText) {
return E_NOTIMPL;
}
+
+ // CBaseFilter
+ STDMETHODIMP QueryFilterInfo(FILTER_INFO* pInfo);
};
class CShoutcastStream : public CSourceStream