From c38fa466c3785aa0af9619e2ba17ca02fda5ab55 Mon Sep 17 00:00:00 2001 From: Andoni Morales Alastruey Date: Thu, 31 May 2012 19:22:47 +0200 Subject: [PATCH] directsoundsink: fix access to invalid pointer in set_volume --- sys/directsound/gstdirectsoundsink.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/directsound/gstdirectsoundsink.c b/sys/directsound/gstdirectsoundsink.c index e1eaee6..7fb26cb 100644 --- a/sys/directsound/gstdirectsoundsink.c +++ b/sys/directsound/gstdirectsoundsink.c @@ -751,6 +751,7 @@ gst_directsound_probe_supported_formats (GstDirectSoundSink * dsoundsink, } else { GST_INFO_OBJECT (dsoundsink, "AC3 passthrough supported"); hRes = IDirectSoundBuffer_Release (dsoundsink->pDSBSecondary); + dsoundsink->pDSBSecondary = NULL; if (FAILED (hRes)) { GST_DEBUG_OBJECT (dsoundsink, "(IDirectSoundBuffer_Release returned: %s)\n", -- 2.7.4