projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
789f5b0
)
alsasrc: set alsasrc->handle back to NULL when closing device
author
Balachandran C
<balachandran_c@rediffmail.com>
Mon, 27 Jul 2009 09:29:27 +0000
(10:29 +0100)
committer
Tim-Philipp Müller
<tim.muller@collabora.co.uk>
Mon, 27 Jul 2009 13:18:27 +0000
(14:18 +0100)
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.
ext/alsa/gstalsasrc.c
patch
|
blob
|
history
diff --git
a/ext/alsa/gstalsasrc.c
b/ext/alsa/gstalsasrc.c
index
00cfdbc
..
07ac78f
100644
(file)
--- a/
ext/alsa/gstalsasrc.c
+++ b/
ext/alsa/gstalsasrc.c
@@
-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);