Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
ffmpeg
Commits
ad8eede7
Commit
ad8eede7
authored
Mar 17, 2010
by
Ramiro Polla
Browse files
vfwcap: Free remaining packets on vfw_read_close().
Originally committed as revision 22575 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
ce03ed4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
libavdevice/vfwcap.c
View file @
ad8eede7
...
...
@@ -210,6 +210,7 @@ fail:
static
int
vfw_read_close
(
AVFormatContext
*
s
)
{
struct
vfw_ctx
*
ctx
=
s
->
priv_data
;
AVPacketList
*
pktl
;
if
(
ctx
->
hwnd
)
{
SendMessage
(
ctx
->
hwnd
,
WM_CAP_SET_CALLBACK_VIDEOSTREAM
,
0
,
0
);
...
...
@@ -221,6 +222,14 @@ static int vfw_read_close(AVFormatContext *s)
if
(
ctx
->
event
)
CloseHandle
(
ctx
->
event
);
pktl
=
ctx
->
pktl
;
while
(
pktl
)
{
AVPacketList
*
next
=
pktl
->
next
;
av_destruct_packet
(
&
pktl
->
pkt
);
av_free
(
pktl
);
pktl
=
next
;
}
return
0
;
}
...
...
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