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
36543adb
Commit
36543adb
authored
Mar 12, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 12, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf/tests: Use wide string literals.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d62f8f64
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
mf.c
dlls/mf/tests/mf.c
+2
-4
No files found.
dlls/mf/tests/mf.c
View file @
36543adb
...
...
@@ -1230,8 +1230,6 @@ static const IMFSampleGrabberSinkCallbackVtbl test_grabber_callback_vtbl =
static
void
test_topology_loader
(
void
)
{
IMFSampleGrabberSinkCallback
test_grabber_callback
=
{
&
test_grabber_callback_vtbl
};
static
const
WCHAR
wavW
[]
=
{
'a'
,
'u'
,
'd'
,
'i'
,
'o'
,
'/'
,
'w'
,
'a'
,
'v'
,
0
};
static
const
WCHAR
nameW
[]
=
{
't'
,
'e'
,
's'
,
't'
,
'.'
,
'w'
,
'a'
,
'v'
,
0
};
IMFTopology
*
topology
,
*
topology2
,
*
full_topology
;
IMFTopologyNode
*
src_node
,
*
sink_node
;
IMFPresentationDescriptor
*
pd
;
...
...
@@ -1271,13 +1269,13 @@ todo_wine
hr
=
MFCreateSourceResolver
(
&
resolver
);
ok
(
hr
==
S_OK
,
"Failed to create source resolver, hr %#x.
\n
"
,
hr
);
filename
=
load_resource
(
nameW
);
filename
=
load_resource
(
L"test.wav"
);
hr
=
MFCreateFile
(
MF_ACCESSMODE_READ
,
MF_OPENMODE_FAIL_IF_NOT_EXIST
,
MF_FILEFLAGS_NONE
,
filename
,
&
stream
);
ok
(
hr
==
S_OK
,
"Failed to create file stream, hr %#x.
\n
"
,
hr
);
IMFByteStream_QueryInterface
(
stream
,
&
IID_IMFAttributes
,
(
void
**
)
&
attr
);
IMFAttributes_SetString
(
attr
,
&
MF_BYTESTREAM_CONTENT_TYPE
,
wavW
);
IMFAttributes_SetString
(
attr
,
&
MF_BYTESTREAM_CONTENT_TYPE
,
L"audio/wav"
);
IMFAttributes_Release
(
attr
);
hr
=
IMFSourceResolver_CreateObjectFromByteStream
(
resolver
,
stream
,
NULL
,
MF_RESOLUTION_MEDIASOURCE
,
NULL
,
...
...
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