Skip to content

Latest commit

 

History

History
68 lines (35 loc) · 2.2 KB

ec-need-restart.md

File metadata and controls

68 lines (35 loc) · 2.2 KB
description ms.assetid title ms.topic ms.date ms.custom
A filter is requesting that the graph be restarted.
58f17338-dd60-4b77-80d3-b6b6a76af9b2
EC_NEED_RESTART (Dshow.h)
reference
4/26/2023
UpdateFrequency5

EC_NEED_RESTART

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

A filter is requesting that the graph be restarted.

Parameters

lParam1

Zero.

lParam2

Zero.

Default Action

The filter graph manager pauses and restarts the graph. It does not pass the event to the application.

Remarks

If a filter rejects a sample in the middle of a stream, the upstream pin will stop delivering samples. The filter can restart the stream by sending this event. For example, the audio renderer might lose access to the sound device, because a video window has lost focus. At that point, the audio renderer starts rejecting samples. When it regains access to the sound device, it sends this event to restart the audio stream.

Requirements

Requirement Value
Header
Dshow.h

See also

Event Notification Codes

Event Notification in DirectShow