diff options
author | Andoni Morales Alastruey <ylatuya@gmail.com> | 2012-05-31 21:22:47 +0400 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2012-07-04 21:54:55 +0400 |
commit | c38fa466c3785aa0af9619e2ba17ca02fda5ab55 (patch) | |
tree | 5a0b6c70767fd313d4ec479f543a513b75d61c27 /sys/directsound/gstdirectsoundsink.c | |
parent | f72a55319d233568bdd7a79696047378dc43a56d (diff) |
directsoundsink: fix access to invalid pointer in set_volume
Diffstat (limited to 'sys/directsound/gstdirectsoundsink.c')
-rw-r--r-- | sys/directsound/gstdirectsoundsink.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/directsound/gstdirectsoundsink.c b/sys/directsound/gstdirectsoundsink.c index e1eaee638..7fb26cbc0 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", |