[vlc-commits] goom: flush the vout from the filter callback
Thomas Guillem
git at videolan.org
Mon Mar 11 10:19:07 CET 2019
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Mar 7 15:57:07 2019 +0100| [574e71e089258513ded4ad74e19668b9542c5520] | committer: Thomas Guillem
goom: flush the vout from the filter callback
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=574e71e089258513ded4ad74e19668b9542c5520
---
modules/visualization/goom.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/modules/visualization/goom.c b/modules/visualization/goom.c
index 8dfa953919..3fa6203e1c 100644
--- a/modules/visualization/goom.c
+++ b/modules/visualization/goom.c
@@ -100,6 +100,7 @@ typedef struct
} goom_thread_t;
static block_t *DoWork ( filter_t *, block_t * );
+static void Flush( filter_t * );
static void *Thread( void * );
@@ -156,6 +157,7 @@ static int Open( vlc_object_t *p_this )
p_filter->fmt_in.audio.i_format = VLC_CODEC_FL32;
p_filter->fmt_out.audio = p_filter->fmt_in.audio;
p_filter->pf_audio_filter = DoWork;
+ p_filter->pf_flush = Flush;
return VLC_SUCCESS;
}
@@ -194,6 +196,12 @@ static block_t *DoWork( filter_t *p_filter, block_t *p_in_buf )
return p_in_buf;
}
+static void Flush( filter_t *p_filter )
+{
+ goom_thread_t *p_thread = p_filter->p_sys;
+ vout_FlushAll( p_thread->p_vout );
+}
+
/*****************************************************************************
* float to s16 conversion
*****************************************************************************/
More information about the vlc-commits
mailing list