Skip to content

Commit

Permalink
mf: Only preroll media sinks when starting from stopped state.
Browse files Browse the repository at this point in the history
CW-Bug-Id: #23010
  • Loading branch information
Yuxuan Shui committed Dec 8, 2023
1 parent c4654ec commit 03b6bd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlls/mf/session.c
Original file line number Diff line number Diff line change
Expand Up @@ -2939,7 +2939,7 @@ static void session_set_source_object_state(struct media_session *session, IUnkn

session_set_presentation_clock(session);

if (session->presentation.flags & SESSION_FLAG_NEEDS_PREROLL)
if ((session->presentation.flags & SESSION_FLAG_NEEDS_PREROLL) && session_is_output_nodes_state(session, OBJ_STATE_STOPPED))
{
MFTIME preroll_time = 0;

Expand Down

0 comments on commit 03b6bd1

Please sign in to comment.