directsoundsink: fix access to invalid pointer in set_volume
authorAndoni Morales Alastruey <ylatuya@gmail.com>
Thu, 31 May 2012 17:22:47 +0000 (19:22 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 4 Jul 2012 17:54:55 +0000 (19:54 +0200)
sys/directsound/gstdirectsoundsink.c

index e1eaee6..7fb26cb 100644 (file)
@@ -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",