[vlc-commits] aout: do not run filters on NULL block

Rémi Denis-Courmont git at videolan.org
Fri Dec 23 21:17:43 CET 2011


vlc/vlc-1.2 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Dec 23 20:51:27 2011 +0100| [eb7729ac755e29a9a810045d10f008ba3b842856] | committer: Jean-Baptiste Kempf

aout: do not run filters on NULL block

Reported-by: Cheng Sun <chengsun9 at gmail.com>
(cherry picked from commit a30a747af7c6cd70c52070f69c0bc06f151f8d04)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 src/audio_output/filters.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/audio_output/filters.c b/src/audio_output/filters.c
index 6c4db27..8a96d8c 100644
--- a/src/audio_output/filters.c
+++ b/src/audio_output/filters.c
@@ -208,7 +208,7 @@ void aout_FiltersPlay( filter_t *const *pp_filters,
     block_t *p_block = *pp_block;
 
     /* TODO: use filter chain */
-    for( unsigned i = 0; i < i_nb_filters; i++ )
+    for( unsigned i = 0; (i < i_nb_filters) && (p_block != NULL); i++ )
     {
         filter_t * p_filter = pp_filters[i];
 



More information about the vlc-commits mailing list