[vlc-commits] aout: do not run filters on NULL block
Rémi Denis-Courmont
git at videolan.org
Fri Dec 23 20:52:18 CET 2011
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Dec 23 20:51:27 2011 +0100| [a30a747af7c6cd70c52070f69c0bc06f151f8d04] | committer: Rémi Denis-Courmont
aout: do not run filters on NULL block
Reported-by: Cheng Sun <chengsun9 at gmail.com>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a30a747af7c6cd70c52070f69c0bc06f151f8d04
---
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