[PATCH 2/2] mf/session: Fail start requests when no topology was set.
Nikolay Sivov
nsivov at codeweavers.com
Wed Jul 21 09:27:08 CDT 2021
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
dlls/mf/session.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/dlls/mf/session.c b/dlls/mf/session.c
index 80cc8ab7135..0377b19c51f 100644
--- a/dlls/mf/session.c
+++ b/dlls/mf/session.c
@@ -841,6 +841,15 @@ static void session_start(struct media_session *session, const GUID *time_format
switch (session->state)
{
case SESSION_STATE_STOPPED:
+
+ /* Start request with no current topology. */
+ if (session->presentation.topo_status == MF_TOPOSTATUS_INVALID)
+ {
+ session_command_complete_with_event(session, MESessionStarted, MF_E_INVALIDREQUEST, NULL);
+ break;
+ }
+
+ /* fallthrough */
case SESSION_STATE_PAUSED:
session->presentation.time_format = *time_format;
--
2.30.2
More information about the wine-devel
mailing list