[vlc-commits] codec: flac: fix regression on flush
Francois Cartegnie
git at videolan.org
Fri Apr 14 19:18:15 CEST 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Apr 14 19:16:01 2017 +0200| [20b0fb285b82a95d7e70fe01f601fb223c7912a3] | committer: Francois Cartegnie
codec: flac: fix regression on flush
for some reason, cannot recover if flushed before init
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=20b0fb285b82a95d7e70fe01f601fb223c7912a3
---
modules/codec/flac.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/codec/flac.c b/modules/codec/flac.c
index 9d2d19bb7d..4d924b00bf 100644
--- a/modules/codec/flac.c
+++ b/modules/codec/flac.c
@@ -603,7 +603,8 @@ static void Flush( decoder_t *p_dec )
{
decoder_sys_t *p_sys = p_dec->p_sys;
- FLAC__stream_decoder_flush( p_dec->p_sys->p_flac );
+ if( p_sys->b_stream_info )
+ FLAC__stream_decoder_flush( p_dec->p_sys->p_flac );
date_Set( &p_sys->end_date, 0 );
}
More information about the vlc-commits
mailing list