Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
3af3375b
Commit
3af3375b
authored
Apr 21, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf: Send format invalidation event when new type is set for SAR stream.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3368abd3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
sar.c
dlls/mf/sar.c
+11
-1
No files found.
dlls/mf/sar.c
View file @
3af3375b
...
...
@@ -1271,6 +1271,7 @@ static HRESULT WINAPI audio_renderer_stream_type_handler_SetCurrentMediaType(IMF
{
struct
audio_renderer
*
renderer
=
impl_from_IMFMediaTypeHandler
(
iface
);
const
unsigned
int
test_flags
=
MF_MEDIATYPE_EQUAL_MAJOR_TYPES
|
MF_MEDIATYPE_EQUAL_FORMAT_TYPES
;
BOOL
compare_result
;
unsigned
int
flags
;
HRESULT
hr
=
S_OK
;
...
...
@@ -1287,7 +1288,16 @@ static HRESULT WINAPI audio_renderer_stream_type_handler_SetCurrentMediaType(IMF
renderer
->
current_media_type
=
media_type
;
IMFMediaType_AddRef
(
renderer
->
current_media_type
);
hr
=
audio_renderer_create_audio_client
(
renderer
);
if
(
SUCCEEDED
(
hr
=
audio_renderer_create_audio_client
(
renderer
)))
{
if
(
SUCCEEDED
(
IMFMediaType_Compare
(
renderer
->
media_type
,
(
IMFAttributes
*
)
media_type
,
MF_ATTRIBUTES_MATCH_OUR_ITEMS
,
&
compare_result
))
&&
!
compare_result
)
{
IMFMediaEventQueue_QueueEventParamVar
(
renderer
->
stream_event_queue
,
MEStreamSinkFormatInvalidated
,
&
GUID_NULL
,
S_OK
,
NULL
);
audio_renderer_preroll
(
renderer
);
}
}
}
else
hr
=
MF_E_INVALIDMEDIATYPE
;
...
...
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