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
dd6b2f9a
Commit
dd6b2f9a
authored
Apr 07, 2023
by
Santino Mazza
Committed by
Alexandre Julliard
Apr 11, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf/session: Handle error when a source fails to start.
parent
74b64eab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
session.c
dlls/mf/session.c
+4
-0
mf.c
dlls/mf/tests/mf.c
+1
-1
No files found.
dlls/mf/session.c
View file @
dd6b2f9a
...
...
@@ -920,7 +920,11 @@ static void session_start(struct media_session *session, const GUID *time_format
LIST_FOR_EACH_ENTRY
(
source
,
&
session
->
presentation
.
sources
,
struct
media_source
,
entry
)
{
if
(
FAILED
(
hr
=
IMFMediaSource_Start
(
source
->
source
,
source
->
pd
,
&
GUID_NULL
,
start_position
)))
{
WARN
(
"Failed to start media source %p, hr %#lx.
\n
"
,
source
->
source
,
hr
);
session_command_complete_with_event
(
session
,
MESessionStarted
,
hr
,
NULL
);
return
;
}
}
session
->
state
=
SESSION_STATE_STARTING_SOURCES
;
...
...
dlls/mf/tests/mf.c
View file @
dd6b2f9a
...
...
@@ -2514,7 +2514,7 @@ static void test_media_session_events(void)
hr
=
IMFMediaSession_Start
(
session
,
&
GUID_NULL
,
&
propvar
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
hr
=
wait_media_event_until_blocking
(
session
,
callback
,
MESessionStarted
,
1000
,
&
propvar
);
todo_wine
ok
(
hr
==
E_NOTIMPL
,
"Unexpected hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
E_NOTIMPL
,
"Unexpected hr %#lx.
\n
"
,
hr
);
ok
(
propvar
.
vt
==
VT_EMPTY
,
"got vt %u
\n
"
,
propvar
.
vt
);
ok
(
propvar
.
punkVal
!=
(
IUnknown
*
)
topology
,
"got punkVal %p
\n
"
,
propvar
.
punkVal
);
PropVariantClear
(
&
propvar
);
...
...
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