mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-27 16:55:05 +00:00
gst/playback/gstplaybin.c: Don't leak an autoaudiosink/alsasink when we generate a new audio element. (old code, I gu...
Original commit message from CVS: * gst/playback/gstplaybin.c: (gen_audio_element): Don't leak an autoaudiosink/alsasink when we generate a new audio element. (old code, I guess)
This commit is contained in:
parent
2c155599a1
commit
c65c75abe8
|
@ -1,3 +1,9 @@
|
||||||
|
2006-01-10 Jan Schmidt <thaytan@mad.scientist.com>
|
||||||
|
|
||||||
|
* gst/playback/gstplaybin.c: (gen_audio_element):
|
||||||
|
Don't leak an autoaudiosink/alsasink when we generate
|
||||||
|
a new audio element. (old code, I guess)
|
||||||
|
|
||||||
2006-01-10 Michael Smith <msmith@fluendo.com>
|
2006-01-10 Michael Smith <msmith@fluendo.com>
|
||||||
|
|
||||||
* gst/audiorate/gstaudiorate.c: (gst_audio_rate_setcaps):
|
* gst/audiorate/gstaudiorate.c: (gst_audio_rate_setcaps):
|
||||||
|
|
|
@ -564,10 +564,6 @@ gen_audio_element (GstPlayBin * play_bin)
|
||||||
(_("Both autoaudiosink and alsasink elements are missing.")), (NULL));
|
(_("Both autoaudiosink and alsasink elements are missing.")), (NULL));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
sink = gst_element_factory_make ("alsasink", "audiosink");
|
|
||||||
if (sink == NULL) {
|
|
||||||
g_warning ("could not create autoaudiosink element");
|
|
||||||
}
|
|
||||||
play_bin->audio_sink = GST_ELEMENT (gst_object_ref (sink));
|
play_bin->audio_sink = GST_ELEMENT (gst_object_ref (sink));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue