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
07f50ee6
Commit
07f50ee6
authored
Sep 16, 2023
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Sep 18, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfreadwrite/reader: Update to IMFSourceReaderEx.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
67fbcff7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
96 additions
and
37 deletions
+96
-37
reader.c
dlls/mfreadwrite/reader.c
+73
-37
mfplat.c
dlls/mfreadwrite/tests/mfplat.c
+23
-0
No files found.
dlls/mfreadwrite/reader.c
View file @
07f50ee6
This diff is collapsed.
Click to expand it.
dlls/mfreadwrite/tests/mfplat.c
View file @
07f50ee6
...
@@ -1505,6 +1505,28 @@ static void test_sink_writer_mp4(void)
...
@@ -1505,6 +1505,28 @@ static void test_sink_writer_mp4(void)
IMFAttributes_Release
(
attr
);
IMFAttributes_Release
(
attr
);
}
}
static
void
test_interfaces
(
void
)
{
IMFSourceReader
*
reader
;
IMFMediaSource
*
source
;
IUnknown
*
unk
;
HRESULT
hr
;
source
=
create_test_source
(
1
);
ok
(
!!
source
,
"Failed to create test source.
\n
"
);
hr
=
MFCreateSourceReaderFromMediaSource
(
source
,
NULL
,
&
reader
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
hr
=
IMFSourceReader_QueryInterface
(
reader
,
&
IID_IMFSourceReaderEx
,
(
void
**
)
&
unk
);
ok
(
hr
==
S_OK
||
broken
(
hr
==
E_NOINTERFACE
)
/* Windows 7 and below.*/
,
"Unexpected hr %#lx.
\n
"
,
hr
);
if
(
unk
)
IUnknown_Release
(
unk
);
IMFSourceReader_Release
(
reader
);
IMFMediaSource_Release
(
source
);
}
START_TEST
(
mfplat
)
START_TEST
(
mfplat
)
{
{
HRESULT
hr
;
HRESULT
hr
;
...
@@ -1514,6 +1536,7 @@ START_TEST(mfplat)
...
@@ -1514,6 +1536,7 @@ START_TEST(mfplat)
init_functions
();
init_functions
();
test_interfaces
();
test_factory
();
test_factory
();
test_source_reader
(
"test.wav"
,
false
);
test_source_reader
(
"test.wav"
,
false
);
test_source_reader
(
"test.mp4"
,
true
);
test_source_reader
(
"test.mp4"
,
true
);
...
...
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