Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
21a928d0
Commit
21a928d0
authored
Sep 30, 2011
by
Ramiro Polla
Committed by
Michael Niedermayer
Nov 06, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dshow: release filter reference obtained from enumeration
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
5b186148
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
dshow.c
libavdevice/dshow.c
+3
-1
No files found.
libavdevice/dshow.c
View file @
21a928d0
...
@@ -121,10 +121,12 @@ dshow_read_close(AVFormatContext *s)
...
@@ -121,10 +121,12 @@ dshow_read_close(AVFormatContext *s)
if
(
r
==
S_OK
)
{
if
(
r
==
S_OK
)
{
IBaseFilter
*
f
;
IBaseFilter
*
f
;
IEnumFilters_Reset
(
fenum
);
IEnumFilters_Reset
(
fenum
);
while
(
IEnumFilters_Next
(
fenum
,
1
,
&
f
,
NULL
)
==
S_OK
)
while
(
IEnumFilters_Next
(
fenum
,
1
,
&
f
,
NULL
)
==
S_OK
)
{
if
(
IGraphBuilder_RemoveFilter
(
ctx
->
graph
,
f
)
==
S_OK
)
if
(
IGraphBuilder_RemoveFilter
(
ctx
->
graph
,
f
)
==
S_OK
)
IEnumFilters_Reset
(
fenum
);
/* When a filter is removed,
IEnumFilters_Reset
(
fenum
);
/* When a filter is removed,
* the list must be reset. */
* the list must be reset. */
IBaseFilter_Release
(
f
);
}
IEnumFilters_Release
(
fenum
);
IEnumFilters_Release
(
fenum
);
}
}
IGraphBuilder_Release
(
ctx
->
graph
);
IGraphBuilder_Release
(
ctx
->
graph
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment