[vlc-commits] packetizer: flac: pop block also on flush
Francois Cartegnie
git at videolan.org
Thu Feb 9 23:05:28 CET 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Feb 9 19:06:12 2017 +0100| [5d6f13551ae44608758caf0c9d365e7f51b3626b] | committer: Francois Cartegnie
packetizer: flac: pop block also on flush
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5d6f13551ae44608758caf0c9d365e7f51b3626b
---
modules/packetizer/flac.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/packetizer/flac.c b/modules/packetizer/flac.c
index 6f8a3c3..e82d5b3 100644
--- a/modules/packetizer/flac.c
+++ b/modules/packetizer/flac.c
@@ -767,7 +767,7 @@ static block_t *Packetize(decoder_t *p_dec, block_t **pp_block)
p_dec->fmt_out.audio.i_original_channels = pi_channels_maps[p_sys->stream_info.channels];
/* So p_block doesn't get re-added several times */
- if ( in )
+ if ( pp_block )
*pp_block = block_BytestreamPop(&p_sys->bytestream);
p_sys->i_offset = 0;
More information about the vlc-commits
mailing list