diff options
author | Lukasz Marek <lukasz.m.luki2@gmail.com> | 2014-05-06 21:38:34 +0200 |
---|---|---|
committer | Lukasz Marek <lukasz.m.luki2@gmail.com> | 2014-05-07 23:39:47 +0200 |
commit | 75a19f5eec665dd792a9a04cdfee15cf897c5f86 (patch) | |
tree | 093e440dbc1592772c932f1ed6b6a1d4ab809045 /libavdevice/jack_audio.c | |
parent | 70b63419ee330a4e6cfcc804061b3917a81e964e (diff) | |
download | ffmpeg-streaming-75a19f5eec665dd792a9a04cdfee15cf897c5f86.zip ffmpeg-streaming-75a19f5eec665dd792a9a04cdfee15cf897c5f86.tar.gz |
lavd/jack_audio: use av_fifo_freep
Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
Diffstat (limited to 'libavdevice/jack_audio.c')
-rw-r--r-- | libavdevice/jack_audio.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libavdevice/jack_audio.c b/libavdevice/jack_audio.c index db1c474..759ef9b 100644 --- a/libavdevice/jack_audio.c +++ b/libavdevice/jack_audio.c @@ -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_freep(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); } |