gst/playback/gstplaybin.c: Don't leak an autoaudiosink/alsasink when we generate...
authorJan Schmidt <thaytan@mad.scientist.com>
Tue, 10 Jan 2006 11:49:28 +0000 (11:49 +0000)
committerJan Schmidt <thaytan@mad.scientist.com>
Tue, 10 Jan 2006 11:49:28 +0000 (11:49 +0000)
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
gst/playback/gstplaybin.c

index 1942816..822ee9b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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):
index 733c981..3bd6a49 100644 (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));
   }