Commit 01e0fdd8 authored by Balachandran C's avatar Balachandran C Committed by Tim-Philipp Müller

alsasrc: set alsasrc->handle back to NULL when closing device

Fixes crashes in gst_alsa_find_device_name() when probing or
reading the device-name property (e.g. when doing a dot-file
dump). Fixes #589797.
parent 789f5b04
......@@ -741,6 +741,7 @@ gst_alsasrc_close (GstAudioSrc * asrc)
GstAlsaSrc *alsa = GST_ALSA_SRC (asrc);
snd_pcm_close (alsa->handle);
alsa->handle = NULL;
if (alsa->mixer) {
gst_alsa_mixer_free (alsa->mixer);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment