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
17450f0b
Commit
17450f0b
authored
Aug 15, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 15, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Use proper method macros.
parent
a488e574
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
24 deletions
+24
-24
dsoundrender.c
dlls/quartz/dsoundrender.c
+1
-1
filesource.c
dlls/quartz/filesource.c
+1
-1
filtergraph.c
dlls/quartz/filtergraph.c
+7
-7
vmr9.c
dlls/quartz/vmr9.c
+15
-15
No files found.
dlls/quartz/dsoundrender.c
View file @
17450f0b
...
...
@@ -656,7 +656,7 @@ HRESULT DSoundRender_create(IUnknown * pUnkOuter, LPVOID * ppv)
hr
=
IDirectSound_CreateSoundBuffer
(
pDSoundRender
->
dsound
,
&
buf_desc
,
&
buf
,
NULL
);
if
(
SUCCEEDED
(
hr
))
{
IDirectSoundBuffer_Play
(
buf
,
0
,
0
,
DSBPLAY_LOOPING
);
I
Unknown
_Release
(
buf
);
I
DirectSoundBuffer
_Release
(
buf
);
}
hr
=
S_OK
;
}
...
...
dlls/quartz/filesource.c
View file @
17450f0b
...
...
@@ -517,7 +517,7 @@ static HRESULT WINAPI AsyncReader_FindPin(IBaseFilter * iface, LPCWSTR Id, IPin
}
*
ppPin
=
This
->
pOutputPin
;
I
Unknow
n_AddRef
(
*
ppPin
);
I
Pi
n_AddRef
(
*
ppPin
);
return
S_OK
;
}
...
...
dlls/quartz/filtergraph.c
View file @
17450f0b
...
...
@@ -772,13 +772,13 @@ static HRESULT WINAPI FilterGraph2_SetDefaultSyncSource(IFilterGraph2 *iface)
{
DWORD
miscflags
;
IAMFilterMiscFlags
*
flags
=
NULL
;
I
Unknown
_QueryInterface
(
This
->
ppFiltersInGraph
[
i
],
&
IID_IAMFilterMiscFlags
,
(
void
**
)
&
flags
);
I
BaseFilter
_QueryInterface
(
This
->
ppFiltersInGraph
[
i
],
&
IID_IAMFilterMiscFlags
,
(
void
**
)
&
flags
);
if
(
!
flags
)
continue
;
miscflags
=
IAMFilterMiscFlags_GetMiscFlags
(
flags
);
I
Unknown
_Release
(
flags
);
I
AMFilterMiscFlags
_Release
(
flags
);
if
(
miscflags
==
AM_FILTER_MISC_FLAGS_IS_RENDERER
)
I
Unknown
_QueryInterface
(
This
->
ppFiltersInGraph
[
i
],
&
IID_IReferenceClock
,
(
void
**
)
&
pClock
);
I
BaseFilter
_QueryInterface
(
This
->
ppFiltersInGraph
[
i
],
&
IID_IReferenceClock
,
(
void
**
)
&
pClock
);
if
(
pClock
)
break
;
}
...
...
@@ -1039,7 +1039,7 @@ static HRESULT WINAPI FilterGraph2_Connect(IFilterGraph2 *iface, IPin *ppinOut,
if
(
FAILED
(
rc
))
{
TRACE
(
"Filter rejected by IAMGraphBuilderCallback_SelectedFilter
\n
"
);
I
Unknown
_Release
(
callback
);
I
AMGraphBuilderCallback
_Release
(
callback
);
goto
error
;
}
}
...
...
@@ -1055,7 +1055,7 @@ static HRESULT WINAPI FilterGraph2_Connect(IFilterGraph2 *iface, IPin *ppinOut,
{
HRESULT
rc
;
rc
=
IAMGraphBuilderCallback_CreatedFilter
(
callback
,
pfilter
);
I
Unknown
_Release
(
callback
);
I
AMGraphBuilderCallback
_Release
(
callback
);
if
(
FAILED
(
rc
))
{
IBaseFilter_Release
(
pfilter
);
...
...
@@ -2200,11 +2200,11 @@ static HRESULT all_renderers_seek(IFilterGraphImpl *This, fnFoundSeek FoundSeek,
IBaseFilter
*
pfilter
=
This
->
ppFiltersInGraph
[
i
];
IAMFilterMiscFlags
*
flags
=
NULL
;
ULONG
filterflags
;
I
Unknown
_QueryInterface
(
pfilter
,
&
IID_IAMFilterMiscFlags
,
(
void
**
)
&
flags
);
I
BaseFilter
_QueryInterface
(
pfilter
,
&
IID_IAMFilterMiscFlags
,
(
void
**
)
&
flags
);
if
(
!
flags
)
continue
;
filterflags
=
IAMFilterMiscFlags_GetMiscFlags
(
flags
);
I
Unknown
_Release
(
flags
);
I
AMFilterMiscFlags
_Release
(
flags
);
if
(
filterflags
!=
AM_FILTER_MISC_FLAGS_IS_RENDERER
)
continue
;
...
...
dlls/quartz/vmr9.c
View file @
17450f0b
...
...
@@ -293,7 +293,7 @@ static HRESULT WINAPI VMR9_DoRenderSample(BaseRenderer *iface, IMediaSample * pS
info
.
szAspectRatio
.
cx
=
This
->
bmiheader
.
biWidth
;
info
.
szAspectRatio
.
cy
=
This
->
bmiheader
.
biHeight
;
hr
=
IVMRSurfaceAllocator9_GetSurface
(
This
->
allocator
,
This
->
cookie
,
(
++
This
->
cur_surface
)
%
This
->
num_surfaces
,
0
,
&
info
.
lpSurf
);
hr
=
IVMRSurfaceAllocator
Ex
9_GetSurface
(
This
->
allocator
,
This
->
cookie
,
(
++
This
->
cur_surface
)
%
This
->
num_surfaces
,
0
,
&
info
.
lpSurf
);
if
(
FAILED
(
hr
))
return
hr
;
...
...
@@ -794,14 +794,14 @@ static ULONG WINAPI VMR9Inner_Release(IUnknown * iface)
CloseHandle
(
This
->
hD3d9
);
if
(
This
->
allocator
)
IVMRSurfaceAllocator9_Release
(
This
->
allocator
);
IVMRSurfaceAllocator
Ex
9_Release
(
This
->
allocator
);
if
(
This
->
presenter
)
IVMRImagePresenter9_Release
(
This
->
presenter
);
This
->
num_surfaces
=
0
;
if
(
This
->
allocator_d3d9_dev
)
{
I
Unknown
_Release
(
This
->
allocator_d3d9_dev
);
I
Direct3DDevice9
_Release
(
This
->
allocator_d3d9_dev
);
This
->
allocator_d3d9_dev
=
NULL
;
}
...
...
@@ -1146,7 +1146,7 @@ static HRESULT WINAPI VMR9FilterConfig_SetRenderingMode(IVMRFilterConfig9 *iface
}
if
(
This
->
allocator
)
IVMRSurfaceAllocator9_Release
(
This
->
allocator
);
IVMRSurfaceAllocator
Ex
9_Release
(
This
->
allocator
);
if
(
This
->
presenter
)
IVMRImagePresenter9_Release
(
This
->
presenter
);
...
...
@@ -1166,12 +1166,12 @@ static HRESULT WINAPI VMR9FilterConfig_SetRenderingMode(IVMRFilterConfig9 *iface
if
(
FAILED
(
hr
))
{
ERR
(
"Unable to find Presenter interface
\n
"
);
IVMR
SurfaceAllocatorEx
9_Release
(
This
->
presenter
);
IVMR
ImagePresenter
9_Release
(
This
->
presenter
);
This
->
allocator
=
NULL
;
This
->
presenter
=
NULL
;
}
else
hr
=
IVMRSurfaceAllocator9_AdviseNotify
(
This
->
allocator
,
&
This
->
IVMRSurfaceAllocatorNotify9_iface
);
hr
=
IVMRSurfaceAllocator
Ex
9_AdviseNotify
(
This
->
allocator
,
&
This
->
IVMRSurfaceAllocatorNotify9_iface
);
break
;
case
VMR9Mode_Renderless
:
break
;
...
...
@@ -1449,15 +1449,15 @@ static HRESULT WINAPI VMR9SurfaceAllocatorNotify_AdviseSurfaceAllocator(IVMRSurf
if
(
This
->
presenter
)
return
VFW_E_WRONG_STATE
;
if
(
FAILED
(
I
Unknown
_QueryInterface
(
alloc
,
&
IID_IVMRImagePresenter9
,
(
void
**
)
&
This
->
presenter
)))
if
(
FAILED
(
I
VMRSurfaceAllocator9
_QueryInterface
(
alloc
,
&
IID_IVMRImagePresenter9
,
(
void
**
)
&
This
->
presenter
)))
return
E_NOINTERFACE
;
if
(
SUCCEEDED
(
I
Unknown
_QueryInterface
(
alloc
,
&
IID_IVMRSurfaceAllocatorEx9
,
(
void
**
)
&
This
->
allocator
)))
if
(
SUCCEEDED
(
I
VMRSurfaceAllocator9
_QueryInterface
(
alloc
,
&
IID_IVMRSurfaceAllocatorEx9
,
(
void
**
)
&
This
->
allocator
)))
This
->
allocator_is_ex
=
1
;
else
{
This
->
allocator
=
(
IVMRSurfaceAllocatorEx9
*
)
alloc
;
I
Unknown
_AddRef
(
alloc
);
I
VMRSurfaceAllocator9
_AddRef
(
alloc
);
This
->
allocator_is_ex
=
0
;
}
...
...
@@ -1694,7 +1694,7 @@ static ULONG WINAPI VMR9_ImagePresenter_Release(IVMRImagePresenter9 *iface)
int
i
;
TRACE
(
"Destroying
\n
"
);
CloseHandle
(
This
->
ack
);
I
Unknown
_Release
(
This
->
d3d9_ptr
);
I
Direct3D9
_Release
(
This
->
d3d9_ptr
);
TRACE
(
"Number of surfaces: %u
\n
"
,
This
->
num_surfaces
);
for
(
i
=
0
;
i
<
This
->
num_surfaces
;
++
i
)
...
...
@@ -1702,7 +1702,7 @@ static ULONG WINAPI VMR9_ImagePresenter_Release(IVMRImagePresenter9 *iface)
IDirect3DSurface9
*
surface
=
This
->
d3d9_surfaces
[
i
];
TRACE
(
"Releasing surface %p
\n
"
,
surface
);
if
(
surface
)
I
Unknown
_Release
(
surface
);
I
Direct3DSurface9
_Release
(
surface
);
}
CoTaskMemFree
(
This
->
d3d9_surfaces
);
...
...
@@ -1710,7 +1710,7 @@ static ULONG WINAPI VMR9_ImagePresenter_Release(IVMRImagePresenter9 *iface)
This
->
num_surfaces
=
0
;
if
(
This
->
d3d9_vertex
)
{
I
Unknown
_Release
(
This
->
d3d9_vertex
);
I
Direct3DVertexBuffer9
_Release
(
This
->
d3d9_vertex
);
This
->
d3d9_vertex
=
NULL
;
}
CoTaskMemFree
(
This
);
...
...
@@ -2118,7 +2118,7 @@ static HRESULT VMR9_SurfaceAllocator_UpdateDeviceReset(VMR9DefaultAllocatorPrese
IDirect3DSurface9
*
surface
=
This
->
d3d9_surfaces
[
i
];
TRACE
(
"Releasing surface %p
\n
"
,
surface
);
if
(
surface
)
I
Unknown
_Release
(
surface
);
I
Direct3DSurface9
_Release
(
surface
);
}
ZeroMemory
(
This
->
d3d9_surfaces
,
sizeof
(
IDirect3DSurface9
*
)
*
This
->
num_surfaces
);
...
...
@@ -2215,7 +2215,7 @@ static HRESULT WINAPI VMR9_SurfaceAllocator_GetSurface(IVMRSurfaceAllocatorEx9 *
return
E_FAIL
;
}
*
surface
=
This
->
d3d9_surfaces
[
surfaceindex
];
I
Unknown
_AddRef
(
*
surface
);
I
Direct3DSurface9
_AddRef
(
*
surface
);
return
S_OK
;
}
...
...
@@ -2283,7 +2283,7 @@ static HRESULT VMR9DefaultAllocatorPresenterImpl_create(VMR9Impl *parent, LPVOID
if
(
hr
==
D3DERR_NOTAVAILABLE
)
{
ERR
(
"Format not supported
\n
"
);
I
Unknown
_Release
(
This
->
d3d9_ptr
);
I
Direct3D9
_Release
(
This
->
d3d9_ptr
);
CoTaskMemFree
(
This
);
return
VFW_E_DDRAW_CAPS_NOT_SUITABLE
;
}
...
...
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