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
215e1979
Commit
215e1979
authored
Sep 09, 2011
by
Ramiro Polla
Committed by
Stefano Sabatini
Sep 16, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dshow: invert condition to avoid leaking objects
Signed-off-by:
Stefano Sabatini
<
stefasab@gmail.com
>
parent
dd41036a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
dshow.c
libavdevice/dshow.c
+3
-3
No files found.
libavdevice/dshow.c
View file @
215e1979
...
...
@@ -261,7 +261,7 @@ dshow_cycle_devices(AVFormatContext *avctx, ICreateDevEnum *devenum,
return
AVERROR
(
EIO
);
}
while
(
IEnumMoniker_Next
(
classenum
,
1
,
&
m
,
NULL
)
==
S_OK
&&
!
device_filter
)
{
while
(
!
device_filter
&&
IEnumMoniker_Next
(
classenum
,
1
,
&
m
,
NULL
)
==
S_OK
)
{
IPropertyBag
*
bag
=
NULL
;
char
*
buf
=
NULL
;
VARIANT
var
;
...
...
@@ -469,7 +469,7 @@ dshow_cycle_pins(AVFormatContext *avctx, enum dshowDeviceType devtype,
av_log
(
avctx
,
AV_LOG_INFO
,
"DirectShow %s device options
\n
"
,
devtypename
);
}
while
(
IEnumPins_Next
(
pins
,
1
,
&
pin
,
NULL
)
==
S_OK
&&
!
device_pin
)
{
while
(
!
device_pin
&&
IEnumPins_Next
(
pins
,
1
,
&
pin
,
NULL
)
==
S_OK
)
{
IKsPropertySet
*
p
=
NULL
;
IEnumMediaTypes
*
types
=
NULL
;
PIN_INFO
info
=
{
0
};
...
...
@@ -508,7 +508,7 @@ dshow_cycle_pins(AVFormatContext *avctx, enum dshowDeviceType devtype,
goto
next
;
IEnumMediaTypes_Reset
(
types
);
while
(
IEnumMediaTypes_Next
(
types
,
1
,
&
type
,
NULL
)
==
S_OK
&&
!
device_pin
)
{
while
(
!
device_pin
&&
IEnumMediaTypes_Next
(
types
,
1
,
&
type
,
NULL
)
==
S_OK
)
{
if
(
IsEqualGUID
(
&
type
->
majortype
,
mediatype
[
devtype
]))
{
device_pin
=
pin
;
goto
next
;
...
...
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