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
963f7618
Commit
963f7618
authored
Jun 29, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Jul 05, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Fix Resampler transform GetCurrent(Input|Output)Type.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
parent
f85985ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
resampler.c
dlls/winegstreamer/resampler.c
+10
-6
No files found.
dlls/winegstreamer/resampler.c
View file @
963f7618
...
...
@@ -435,7 +435,6 @@ failed:
static
HRESULT
WINAPI
transform_GetInputCurrentType
(
IMFTransform
*
iface
,
DWORD
id
,
IMFMediaType
**
type
)
{
struct
resampler
*
impl
=
impl_from_IMFTransform
(
iface
);
IMFMediaType
*
ret
;
HRESULT
hr
;
TRACE
(
"iface %p, id %#lx, type %p.
\n
"
,
iface
,
id
,
type
);
...
...
@@ -446,16 +445,18 @@ static HRESULT WINAPI transform_GetInputCurrentType(IMFTransform *iface, DWORD i
if
(
!
impl
->
input_type
)
return
MF_E_TRANSFORM_TYPE_NOT_SET
;
if
(
FAILED
(
hr
=
MFCreateMediaType
(
&
ret
)))
if
(
FAILED
(
hr
=
MFCreateMediaType
(
type
)))
return
hr
;
return
IMFMediaType_CopyAllItems
(
impl
->
input_type
,
(
IMFAttributes
*
)
ret
);
if
(
FAILED
(
hr
=
IMFMediaType_CopyAllItems
(
impl
->
input_type
,
(
IMFAttributes
*
)
*
type
)))
IMFMediaType_Release
(
*
type
);
return
hr
;
}
static
HRESULT
WINAPI
transform_GetOutputCurrentType
(
IMFTransform
*
iface
,
DWORD
id
,
IMFMediaType
**
type
)
{
struct
resampler
*
impl
=
impl_from_IMFTransform
(
iface
);
IMFMediaType
*
ret
;
HRESULT
hr
;
TRACE
(
"iface %p, id %#lx, type %p.
\n
"
,
iface
,
id
,
type
);
...
...
@@ -466,10 +467,13 @@ static HRESULT WINAPI transform_GetOutputCurrentType(IMFTransform *iface, DWORD
if
(
!
impl
->
output_type
)
return
MF_E_TRANSFORM_TYPE_NOT_SET
;
if
(
FAILED
(
hr
=
MFCreateMediaType
(
&
ret
)))
if
(
FAILED
(
hr
=
MFCreateMediaType
(
type
)))
return
hr
;
return
IMFMediaType_CopyAllItems
(
impl
->
output_type
,
(
IMFAttributes
*
)
ret
);
if
(
FAILED
(
hr
=
IMFMediaType_CopyAllItems
(
impl
->
output_type
,
(
IMFAttributes
*
)
*
type
)))
IMFMediaType_Release
(
*
type
);
return
hr
;
}
static
HRESULT
WINAPI
transform_GetInputStatus
(
IMFTransform
*
iface
,
DWORD
id
,
DWORD
*
flags
)
...
...
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