ext/alsa/gstalsamixer.c: Correct logic of dispose function (see #129306).

Original commit message from CVS:
2004-01-03  Thomas Canty <tommydal@optushome.com.au>

reviewed by: Ronald Bultje  <rbultje@ronald.bitfreak.net>

* ext/alsa/gstalsamixer.c: (gst_alsa_mixer_dispose):
Correct logic of dispose function (see #129306).
This commit is contained in:
Ronald S. Bultje 2004-01-03 13:09:21 +00:00
parent 1d7359030d
commit a22237f480
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2004-01-03 Thomas Canty <tommydal@optushome.com.au>
reviewed by: Ronald Bultje <rbultje@ronald.bitfreak.net>
* ext/alsa/gstalsamixer.c: (gst_alsa_mixer_dispose):
Correct logic of dispose function (see #129306).
2004-01-03 Ronald Bultje <rbultje@ronald.bitfreak.net>
* gst/mpegstream/gstmpegdemux.c: (gst_mpeg_demux_parse_pes):

View file

@ -171,7 +171,7 @@ gst_alsa_mixer_dispose (GObject * object)
{
GstAlsaMixer *mixer = GST_ALSA_MIXER (object);
if (((gint) mixer->mixer_handle) != -1) return;
if (((gint) mixer->mixer_handle) == -1) return;
snd_mixer_close (mixer->mixer_handle);
mixer->mixer_handle = (snd_mixer_t *) -1;