[vlc-devel] commit: Document that visualizations only work inside audio input ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Sep 27 15:23:20 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Sep 27 16:23:06 2009 +0300| [2c66458de35d73d166ff9af5e2406dec42fec0f7] | committer: Rémi Denis-Courmont 

Document that visualizations only work inside audio input

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2c66458de35d73d166ff9af5e2406dec42fec0f7
---

 src/audio_output/input.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/audio_output/input.c b/src/audio_output/input.c
index 79916b5..f376d47 100644
--- a/src/audio_output/input.c
+++ b/src/audio_output/input.c
@@ -811,6 +811,11 @@ vout_thread_t *aout_filter_RequestVout( aout_filter_t *p_filter,
     aout_input_t *p_input = p_filter->p_owner->p_input;
     aout_request_vout_t *p_request = &p_input->request_vout;
 
+    /* XXX: this only works from audio input */
+    /* If you want to use visualization filters from another place, you will
+     * need to add a new pf_aout_request_vout callback or store a pointer
+     * to aout_request_vout_t inside filter_t (i.e. a level of indirection). */
+
     return p_request->pf_request_vout( p_request->p_private,
                                        p_vout, p_fmt, p_input->b_recycle_vout );
 }




More information about the vlc-devel mailing list