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:
Jan Schmidt 2006-01-10 11:49:28 +00:00
parent 2c155599a1
commit c65c75abe8
2 changed files with 6 additions and 4 deletions

View file

@ -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>
* gst/audiorate/gstaudiorate.c: (gst_audio_rate_setcaps):

View file

@ -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));
}