| Previous | Next |
| EVENT_E_QUERYSYNTAX | EVENT_E_QUERYFIELD |
VFW_E_ENUM_OUT_OF_SYNC
VFW_E_ENUM_OUT_OF_SYNC is a DirectShow HRESULT. A pin or filter enumeration is only valid while the collection being enumerated remains unchanged. Adding, removing or reconnecting filters or pins can make earlier enumeration results stale.
How to recover
- Discard objects and indexes obtained from the old enumeration.
- Call the enumerator's
Resetmethod or create a new enumerator after the graph change. - Serialize graph mutations and enumeration so that another thread cannot reconfigure the graph in the middle of a scan.
Do not retry the same Next call while keeping old cached positions. Re-enumerate and re-evaluate the current graph topology.
Looking for a different code? Search another status or error code.