mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
ext/alsa/gstalsadeviceprobe.c: Don't return before freeing up the allocated structures.
Original commit message from CVS: * ext/alsa/gstalsadeviceprobe.c: (gst_alsa_get_device_list): Don't return before freeing up the allocated structures.
This commit is contained in:
parent
2b44c294ff
commit
f75494578e
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2008-04-24 Edward Hervey <edward.hervey@collabora.co.uk>
|
||||
|
||||
* ext/alsa/gstalsadeviceprobe.c:
|
||||
(gst_alsa_get_device_list): Don't return before freeing up
|
||||
the allocated structures.
|
||||
|
||||
2008-04-24 Stefan Kost <ensonic@users.sf.net>
|
||||
|
||||
* gst/playback/gstplaybin.c:
|
||||
|
|
|
@ -67,7 +67,8 @@ gst_alsa_get_device_list (snd_pcm_stream_t stream)
|
|||
|
||||
if (snd_card_next (&card) < 0 || card < 0) {
|
||||
/* no soundcard found */
|
||||
return NULL;
|
||||
GST_WARNING ("No soundcard found");
|
||||
goto beach;
|
||||
}
|
||||
|
||||
while (card >= 0) {
|
||||
|
@ -111,6 +112,7 @@ gst_alsa_get_device_list (snd_pcm_stream_t stream)
|
|||
}
|
||||
}
|
||||
|
||||
beach:
|
||||
snd_ctl_card_info_free (info);
|
||||
snd_pcm_info_free (pcminfo);
|
||||
|
||||
|
|
Loading…
Reference in a new issue