Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
226897be
Commit
226897be
authored
May 16, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
May 17, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/tests: Use CRT memory allocators.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
11c336b4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
18 deletions
+8
-18
filtergraph.c
dlls/quartz/tests/filtergraph.c
+2
-9
videorenderer.c
dlls/quartz/tests/videorenderer.c
+2
-3
vmr7.c
dlls/quartz/tests/vmr7.c
+2
-3
vmr9.c
dlls/quartz/tests/vmr9.c
+2
-3
No files found.
dlls/quartz/tests/filtergraph.c
View file @
226897be
...
...
@@ -23,7 +23,6 @@
#define CONST_VTABLE
#include "dshow.h"
#include "wine/heap.h"
#include "wine/test.h"
static
const
GUID
testguid
=
{
0xabbccdde
};
...
...
@@ -1486,14 +1485,8 @@ static HRESULT WINAPI testfilter_JoinFilterGraph(IBaseFilter *iface, IFilterGrap
if
(
winetest_debug
>
1
)
trace
(
"%p->JoinFilterGraph(%p, %s)
\n
"
,
filter
,
graph
,
wine_dbgstr_w
(
name
));
filter
->
graph
=
graph
;
heap_free
(
filter
->
name
);
if
(
name
)
{
filter
->
name
=
heap_alloc
((
wcslen
(
name
)
+
1
)
*
sizeof
(
WCHAR
));
wcscpy
(
filter
->
name
,
name
);
}
else
filter
->
name
=
NULL
;
free
(
filter
->
name
);
filter
->
name
=
name
?
wcsdup
(
name
)
:
NULL
;
return
S_OK
;
}
...
...
dlls/quartz/tests/videorenderer.c
View file @
226897be
...
...
@@ -20,7 +20,6 @@
#define COBJMACROS
#include "dshow.h"
#include "wine/heap.h"
#include "wine/strmbase.h"
#include "wine/test.h"
...
...
@@ -765,13 +764,13 @@ static DWORD WINAPI frame_thread(void *arg)
hr
=
IMemInputPin_Receive
(
params
->
sink
,
params
->
sample
);
if
(
winetest_debug
>
1
)
trace
(
"%04x: Returned %#x.
\n
"
,
GetCurrentThreadId
(),
hr
);
IMediaSample_Release
(
params
->
sample
);
heap_
free
(
params
);
free
(
params
);
return
hr
;
}
static
HANDLE
send_frame_time
(
IMemInputPin
*
sink
,
REFERENCE_TIME
start_time
,
unsigned
char
color
)
{
struct
frame_thread_params
*
params
=
heap_
alloc
(
sizeof
(
*
params
));
struct
frame_thread_params
*
params
=
m
alloc
(
sizeof
(
*
params
));
IMemAllocator
*
allocator
;
REFERENCE_TIME
end_time
;
IMediaSample
*
sample
;
...
...
dlls/quartz/tests/vmr7.c
View file @
226897be
...
...
@@ -23,7 +23,6 @@
#include "dshow.h"
#include "d3d9.h"
#include "vmr9.h"
#include "wine/heap.h"
#include "wine/strmbase.h"
#include "wine/test.h"
...
...
@@ -969,13 +968,13 @@ static DWORD WINAPI frame_thread(void *arg)
hr
=
IMemInputPin_Receive
(
params
->
sink
,
params
->
sample
);
if
(
winetest_debug
>
1
)
trace
(
"%04x: Returned %#x.
\n
"
,
GetCurrentThreadId
(),
hr
);
IMediaSample_Release
(
params
->
sample
);
heap_
free
(
params
);
free
(
params
);
return
hr
;
}
static
HANDLE
send_frame
(
IMemInputPin
*
sink
)
{
struct
frame_thread_params
*
params
=
heap_
alloc
(
sizeof
(
*
params
));
struct
frame_thread_params
*
params
=
m
alloc
(
sizeof
(
*
params
));
REFERENCE_TIME
start_time
,
end_time
;
IMemAllocator
*
allocator
;
IMediaSample
*
sample
;
...
...
dlls/quartz/tests/vmr9.c
View file @
226897be
...
...
@@ -28,7 +28,6 @@
#include "d3d9.h"
#include "vmr9.h"
#include "wmcodecdsp.h"
#include "wine/heap.h"
#include "wine/strmbase.h"
#include "wine/test.h"
...
...
@@ -976,13 +975,13 @@ static DWORD WINAPI frame_thread(void *arg)
hr
=
IMemInputPin_Receive
(
params
->
sink
,
params
->
sample
);
if
(
winetest_debug
>
1
)
trace
(
"%04x: Returned %#x.
\n
"
,
GetCurrentThreadId
(),
hr
);
IMediaSample_Release
(
params
->
sample
);
heap_
free
(
params
);
free
(
params
);
return
hr
;
}
static
HANDLE
send_frame_time
(
IMemInputPin
*
sink
,
REFERENCE_TIME
start_time
,
DWORD
color
)
{
struct
frame_thread_params
*
params
=
heap_
alloc
(
sizeof
(
*
params
));
struct
frame_thread_params
*
params
=
m
alloc
(
sizeof
(
*
params
));
IMemAllocator
*
allocator
;
REFERENCE_TIME
end_time
;
IMediaSample
*
sample
;
...
...
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