00001
00034 #include "stdafx.h"
00035
00036
00037 #pragma warning(push) // disable for this header only
00038 #pragma warning(disable:4312)
00039
00040 #include <Streams.h>
00041 #pragma warning(pop) // restore original warning level
00042
00043 #include "RtspSourceFilter.h"
00044 #include "RtspSourceOutputPin.h"
00045 #include "RtspProperties.h"
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058 const AMOVIESETUP_MEDIATYPE sudOpPinTypes =
00059 {
00060 &MEDIATYPE_Audio,
00061 &MEDIASUBTYPE_NULL
00062 };
00063
00064 const AMOVIESETUP_PIN sudOutputPinBitmapSet =
00065 {
00066 L"Output",
00067 FALSE,
00068 TRUE,
00069 FALSE,
00070 FALSE,
00071 &CLSID_NULL,
00072 NULL,
00073 1,
00074 &sudOpPinTypes
00075 };
00076
00077 const AMOVIESETUP_FILTER sudAdvertSource=
00078 {
00079 &CLSID_RTVC_RtspAudioSourceFilter,
00080 g_wszFilterName,
00081 MERIT_DO_NOT_USE,
00082 1,
00083 &sudOutputPinBitmapSet
00084 };
00085
00086
00087
00088
00089
00090
00091
00092 CFactoryTemplate g_Templates[] =
00093 {
00094 {
00095 g_wszFilterName,
00096 &CLSID_RTVC_RtspAudioSourceFilter,
00097 RtspSourceFilter::CreateInstance,
00098 NULL,
00099 &sudAdvertSource
00100 },
00101
00102 {
00103 L"Rtsp Properties",
00104 &CLSID_RtspProperties,
00105 RtspProperties::CreateInstance,
00106 NULL, NULL
00107 }
00108
00109 };
00110
00111 int g_cTemplates = sizeof(g_Templates) / sizeof(g_Templates[0]);
00112
00113
00114
00116
00117
00118
00119
00121
00122 STDAPI DllRegisterServer()
00123 {
00124 return AMovieDllRegisterServer2( TRUE );
00125 }
00126
00127 STDAPI DllUnregisterServer()
00128 {
00129 return AMovieDllRegisterServer2( FALSE );
00130 }
00131
00132
00133
00134
00135 extern "C" BOOL WINAPI DllEntryPoint(HINSTANCE, ULONG, LPVOID);
00136
00137 BOOL APIENTRY DllMain(HANDLE hModule,
00138 DWORD dwReason,
00139 LPVOID lpReserved)
00140 {
00141 return DllEntryPoint((HINSTANCE)(hModule), dwReason, lpReserved);
00142 }
00143