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
18057212
Commit
18057212
authored
Jun 29, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Aug 01, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf: Return MF_E_NO_MORE_TYPE from AudioRenderer GetMediaTypeByIndex.
parent
3dbb6c74
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
sar.c
dlls/mf/sar.c
+3
-4
mf.c
dlls/mf/tests/mf.c
+0
-1
No files found.
dlls/mf/sar.c
View file @
18057212
...
@@ -1531,12 +1531,11 @@ static HRESULT WINAPI audio_renderer_stream_type_handler_GetMediaTypeByIndex(IMF
...
@@ -1531,12 +1531,11 @@ static HRESULT WINAPI audio_renderer_stream_type_handler_GetMediaTypeByIndex(IMF
TRACE
(
"%p, %lu, %p.
\n
"
,
iface
,
index
,
media_type
);
TRACE
(
"%p, %lu, %p.
\n
"
,
iface
,
index
,
media_type
);
if
(
index
==
0
)
if
(
index
>
0
)
{
return
MF_E_NO_MORE_TYPES
;
*
media_type
=
renderer
->
media_type
;
*
media_type
=
renderer
->
media_type
;
IMFMediaType_AddRef
(
*
media_type
);
IMFMediaType_AddRef
(
*
media_type
);
}
return
S_OK
;
return
S_OK
;
}
}
...
...
dlls/mf/tests/mf.c
View file @
18057212
...
@@ -4636,7 +4636,6 @@ if (SUCCEEDED(hr))
...
@@ -4636,7 +4636,6 @@ if (SUCCEEDED(hr))
ok
(
!!
count
,
"Unexpected type count %lu.
\n
"
,
count
);
ok
(
!!
count
,
"Unexpected type count %lu.
\n
"
,
count
);
hr
=
IMFMediaTypeHandler_GetMediaTypeByIndex
(
handler
,
count
,
&
mediatype
);
hr
=
IMFMediaTypeHandler_GetMediaTypeByIndex
(
handler
,
count
,
&
mediatype
);
todo_wine
ok
(
hr
==
MF_E_NO_MORE_TYPES
,
"Unexpected hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
MF_E_NO_MORE_TYPES
,
"Unexpected hr %#lx.
\n
"
,
hr
);
hr
=
IMFMediaTypeHandler_GetMediaTypeByIndex
(
handler
,
0
,
&
mediatype
);
hr
=
IMFMediaTypeHandler_GetMediaTypeByIndex
(
handler
,
0
,
&
mediatype
);
...
...
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