[vlc-commits] playlist: fix null-deref if there is no aout

Thomas Guillem git at videolan.org
Mon May 22 16:00:02 CEST 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon May 22 15:58:20 2017 +0200| [af61af4557909340220e3d2ecaaf905e9ca48d5c] | committer: Thomas Guillem

playlist: fix null-deref if there is no aout

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

 src/playlist/aout.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/playlist/aout.c b/src/playlist/aout.c
index d24e14f12b..b9eb157a2e 100644
--- a/src/playlist/aout.c
+++ b/src/playlist/aout.c
@@ -133,7 +133,7 @@ void playlist_EnableAudioFilter (playlist_t *pl, const char *name, bool add)
 {
     audio_output_t *aout = playlist_GetAout (pl);
 
-    aout_ChangeFilterString (VLC_OBJECT(pl), VLC_OBJECT(aout),
+    aout_ChangeFilterString (VLC_OBJECT(pl), aout ? VLC_OBJECT(aout) : NULL,
                              "audio-filter", name, add);
     if (aout != NULL)
         vlc_object_release (aout);



More information about the vlc-commits mailing list