some eos fixes to adder. note that even if it has no more sources, adder will still...
authorAndy Wingo <wingo@pobox.com>
Sun, 17 Feb 2002 18:31:42 +0000 (18:31 +0000)
committerAndy Wingo <wingo@pobox.com>
Sun, 17 Feb 2002 18:31:42 +0000 (18:31 +0000)
Original commit message from CVS:
some eos fixes to adder. note that even if it has no more sources, adder will
still output zeroes and thus will never really stop.

gst/adder/gstadder.c

index 513b5a1..3c348fc 100644 (file)
@@ -363,7 +363,7 @@ gst_adder_loop (GstElement *element)
             GST_DEBUG (0, "got an EOS event\n");
 
             gst_bytestream_destroy (input->bytestream);
-            gst_pad_unref (input->sinkpad);
+            /* gst_object_unref (GST_OBJECT (input->sinkpad)); this causes problems */
             g_free (input);
 
             adder->input_channels = g_slist_delete_link (inputs, inputs);