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
75a19f5e
Commit
75a19f5e
authored
May 06, 2014
by
Lukasz Marek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavd/jack_audio: use av_fifo_freep
Signed-off-by:
Lukasz Marek
<
lukasz.m.luki2@gmail.com
>
parent
70b63419
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
jack_audio.c
libavdevice/jack_audio.c
+6
-6
No files found.
libavdevice/jack_audio.c
View file @
75a19f5e
...
...
@@ -206,14 +206,14 @@ static int start_jack(AVFormatContext *context)
}
static
void
free_pkt_fifo
(
AVFifoBuffer
*
fifo
)
static
void
free_pkt_fifo
(
AVFifoBuffer
*
*
fifo
)
{
AVPacket
pkt
;
while
(
av_fifo_size
(
fifo
))
{
av_fifo_generic_read
(
fifo
,
&
pkt
,
sizeof
(
pkt
),
NULL
);
while
(
av_fifo_size
(
*
fifo
))
{
av_fifo_generic_read
(
*
fifo
,
&
pkt
,
sizeof
(
pkt
),
NULL
);
av_free_packet
(
&
pkt
);
}
av_fifo_free
(
fifo
);
av_fifo_free
p
(
fifo
);
}
static
void
stop_jack
(
JackData
*
self
)
...
...
@@ -224,8 +224,8 @@ static void stop_jack(JackData *self)
jack_client_close
(
self
->
client
);
}
sem_destroy
(
&
self
->
packet_count
);
free_pkt_fifo
(
self
->
new_pkts
);
free_pkt_fifo
(
self
->
filled_pkts
);
free_pkt_fifo
(
&
self
->
new_pkts
);
free_pkt_fifo
(
&
self
->
filled_pkts
);
av_freep
(
&
self
->
ports
);
ff_timefilter_destroy
(
self
->
timefilter
);
}
...
...
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