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
c91211f3
Commit
c91211f3
authored
Apr 12, 2024
by
Rémi Bernon
Committed by
Alexandre Julliard
Apr 29, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer/video_processor: Allow clearing input / output types.
parent
101d82c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
video_processor.c
dlls/winegstreamer/video_processor.c
+32
-0
No files found.
dlls/winegstreamer/video_processor.c
View file @
c91211f3
...
...
@@ -347,6 +347,22 @@ static HRESULT WINAPI video_processor_SetInputType(IMFTransform *iface, DWORD id
TRACE
(
"iface %p, id %#lx, type %p, flags %#lx.
\n
"
,
iface
,
id
,
type
,
flags
);
if
(
!
type
)
{
if
(
impl
->
input_type
)
{
IMFMediaType_Release
(
impl
->
input_type
);
impl
->
input_type
=
NULL
;
}
if
(
impl
->
wg_transform
)
{
wg_transform_destroy
(
impl
->
wg_transform
);
impl
->
wg_transform
=
0
;
}
return
S_OK
;
}
if
(
FAILED
(
IMFMediaType_GetGUID
(
type
,
&
MF_MT_MAJOR_TYPE
,
&
major
))
||
!
IsEqualGUID
(
&
major
,
&
MFMediaType_Video
))
return
E_INVALIDARG
;
...
...
@@ -390,6 +406,22 @@ static HRESULT WINAPI video_processor_SetOutputType(IMFTransform *iface, DWORD i
TRACE
(
"iface %p, id %#lx, type %p, flags %#lx.
\n
"
,
iface
,
id
,
type
,
flags
);
if
(
!
type
)
{
if
(
impl
->
output_type
)
{
IMFMediaType_Release
(
impl
->
output_type
);
impl
->
output_type
=
NULL
;
}
if
(
impl
->
wg_transform
)
{
wg_transform_destroy
(
impl
->
wg_transform
);
impl
->
wg_transform
=
0
;
}
return
S_OK
;
}
if
(
FAILED
(
IMFMediaType_GetGUID
(
type
,
&
MF_MT_MAJOR_TYPE
,
&
major
))
||
!
IsEqualGUID
(
&
major
,
&
MFMediaType_Video
))
return
E_INVALIDARG
;
...
...
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