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
a12b5fe0
Commit
a12b5fe0
authored
Apr 24, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 24, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf: Handle null marker context for sample grabber stream.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
73a6470d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
samplegrabber.c
dlls/mf/samplegrabber.c
+4
-2
No files found.
dlls/mf/samplegrabber.c
View file @
a12b5fe0
...
@@ -446,7 +446,7 @@ static HRESULT stream_place_marker(struct sample_grabber *grabber, MFSTREAMSINK_
...
@@ -446,7 +446,7 @@ static HRESULT stream_place_marker(struct sample_grabber *grabber, MFSTREAMSINK_
const
PROPVARIANT
*
context_value
)
const
PROPVARIANT
*
context_value
)
{
{
struct
scheduled_item
*
item
;
struct
scheduled_item
*
item
;
HRESULT
hr
;
HRESULT
hr
=
S_OK
;
if
(
list_empty
(
&
grabber
->
items
))
if
(
list_empty
(
&
grabber
->
items
))
{
{
...
@@ -460,7 +460,9 @@ static HRESULT stream_place_marker(struct sample_grabber *grabber, MFSTREAMSINK_
...
@@ -460,7 +460,9 @@ static HRESULT stream_place_marker(struct sample_grabber *grabber, MFSTREAMSINK_
item
->
type
=
ITEM_TYPE_MARKER
;
item
->
type
=
ITEM_TYPE_MARKER
;
item
->
u
.
marker
.
type
=
marker_type
;
item
->
u
.
marker
.
type
=
marker_type
;
list_init
(
&
item
->
entry
);
list_init
(
&
item
->
entry
);
hr
=
PropVariantCopy
(
&
item
->
u
.
marker
.
context
,
context_value
);
PropVariantInit
(
&
item
->
u
.
marker
.
context
);
if
(
context_value
)
hr
=
PropVariantCopy
(
&
item
->
u
.
marker
.
context
,
context_value
);
if
(
SUCCEEDED
(
hr
))
if
(
SUCCEEDED
(
hr
))
list_add_tail
(
&
grabber
->
items
,
&
item
->
entry
);
list_add_tail
(
&
grabber
->
items
,
&
item
->
entry
);
else
else
...
...
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