Commit a1644f62 authored by Ramiro Polla's avatar Ramiro Polla Committed by Stefano Sabatini

dshow: reset list for each filter removed

Signed-off-by: 's avatarStefano Sabatini <stefasab@gmail.com>
parent 215e1979
......@@ -138,7 +138,9 @@ dshow_read_close(AVFormatContext *s)
IBaseFilter *f;
IEnumFilters_Reset(fenum);
while (IEnumFilters_Next(fenum, 1, &f, NULL) == S_OK)
IGraphBuilder_RemoveFilter(ctx->graph, f);
if (IGraphBuilder_RemoveFilter(ctx->graph, f) == S_OK)
IEnumFilters_Reset(fenum); /* When a filter is removed,
* the list must be reset. */
IEnumFilters_Release(fenum);
}
IGraphBuilder_Release(ctx->graph);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment