Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
9dedc4a7
Commit
9dedc4a7
authored
Nov 04, 2010
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Nov 05, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Add IAMFilterMiscFlags to file source.
parent
443e24fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
filesource.c
dlls/quartz/filesource.c
+36
-0
No files found.
dlls/quartz/filesource.c
View file @
9dedc4a7
...
...
@@ -41,6 +41,7 @@ typedef struct AsyncReader
{
BaseFilter
filter
;
const
IFileSourceFilterVtbl
*
lpVtblFSF
;
const
IAMFilterMiscFlagsVtbl
*
IAMFilterMiscFlags_vtbl
;
IPin
*
pOutputPin
;
LPOLESTR
pszFileName
;
...
...
@@ -50,6 +51,7 @@ typedef struct AsyncReader
static
const
IBaseFilterVtbl
AsyncReader_Vtbl
;
static
const
IFileSourceFilterVtbl
FileSource_Vtbl
;
static
const
IAsyncReaderVtbl
FileAsyncReader_Vtbl
;
static
const
IAMFilterMiscFlagsVtbl
IAMFilterMiscFlags_Vtbl
;
static
HRESULT
FileAsyncReader_Construct
(
HANDLE
hFile
,
IBaseFilter
*
pBaseFilter
,
LPCRITICAL_SECTION
pCritSec
,
IPin
**
ppPin
);
...
...
@@ -369,6 +371,7 @@ HRESULT AsyncReader_create(IUnknown * pUnkOuter, LPVOID * ppv)
BaseFilter_Init
(
&
pAsyncRead
->
filter
,
&
AsyncReader_Vtbl
,
&
CLSID_AsyncReader
,
(
DWORD_PTR
)(
__FILE__
": AsyncReader.csFilter"
),
&
BaseFuncTable
);
pAsyncRead
->
lpVtblFSF
=
&
FileSource_Vtbl
;
pAsyncRead
->
IAMFilterMiscFlags_vtbl
=
&
IAMFilterMiscFlags_Vtbl
;
pAsyncRead
->
pOutputPin
=
NULL
;
pAsyncRead
->
pszFileName
=
NULL
;
...
...
@@ -401,6 +404,8 @@ static HRESULT WINAPI AsyncReader_QueryInterface(IBaseFilter * iface, REFIID rii
*
ppv
=
This
;
else
if
(
IsEqualIID
(
riid
,
&
IID_IFileSourceFilter
))
*
ppv
=
&
This
->
lpVtblFSF
;
else
if
(
IsEqualIID
(
riid
,
&
IID_IAMFilterMiscFlags
))
*
ppv
=
&
This
->
IAMFilterMiscFlags_vtbl
;
if
(
*
ppv
)
{
...
...
@@ -1334,3 +1339,34 @@ static const IAsyncReaderVtbl FileAsyncReader_Vtbl =
FileAsyncReader_BeginFlush
,
FileAsyncReader_EndFlush
,
};
static
AsyncReader
*
from_IAMFilterMiscFlags
(
IAMFilterMiscFlags
*
iface
)
{
return
(
AsyncReader
*
)((
char
*
)
iface
-
offsetof
(
AsyncReader
,
IAMFilterMiscFlags_vtbl
));
}
static
HRESULT
WINAPI
AMFilterMiscFlags_QueryInterface
(
IAMFilterMiscFlags
*
iface
,
const
REFIID
riid
,
void
**
ppv
)
{
AsyncReader
*
This
=
from_IAMFilterMiscFlags
(
iface
);
return
IUnknown_QueryInterface
((
IUnknown
*
)
This
,
riid
,
ppv
);
}
static
ULONG
WINAPI
AMFilterMiscFlags_AddRef
(
IAMFilterMiscFlags
*
iface
)
{
AsyncReader
*
This
=
from_IAMFilterMiscFlags
(
iface
);
return
IUnknown_AddRef
((
IUnknown
*
)
This
);
}
static
ULONG
WINAPI
AMFilterMiscFlags_Release
(
IAMFilterMiscFlags
*
iface
)
{
AsyncReader
*
This
=
from_IAMFilterMiscFlags
(
iface
);
return
IUnknown_Release
((
IUnknown
*
)
This
);
}
static
ULONG
WINAPI
AMFilterMiscFlags_GetMiscFlags
(
IAMFilterMiscFlags
*
iface
)
{
return
AM_FILTER_MISC_FLAGS_IS_SOURCE
;
}
static
const
IAMFilterMiscFlagsVtbl
IAMFilterMiscFlags_Vtbl
=
{
AMFilterMiscFlags_QueryInterface
,
AMFilterMiscFlags_AddRef
,
AMFilterMiscFlags_Release
,
AMFilterMiscFlags_GetMiscFlags
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment