From c65c75abe89c30e56c8b34218b88678f47ec3455 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Tue, 10 Jan 2006 11:49:28 +0000 Subject: [PATCH] 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) --- ChangeLog | 6 ++++++ gst/playback/gstplaybin.c | 4 ---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1942816742..822ee9b11f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-01-10 Jan Schmidt + + * 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 * gst/audiorate/gstaudiorate.c: (gst_audio_rate_setcaps): diff --git a/gst/playback/gstplaybin.c b/gst/playback/gstplaybin.c index 733c981ebd..3bd6a49590 100644 --- a/gst/playback/gstplaybin.c +++ b/gst/playback/gstplaybin.c @@ -564,10 +564,6 @@ gen_audio_element (GstPlayBin * play_bin) (_("Both autoaudiosink and alsasink elements are missing.")), (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)); }