From 38a25af6085274173857d61d1a8dba67acae3d87 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 18 Mar 2003 00:39:34 +0000 Subject: [PATCH] bugfi^H^Hworkaround: only send eos to unconnected elements - fixes new mikmod Original commit message from CVS: bugfi^H^Hworkaround: only send eos to unconnected elements - fixes new mikmod --- gst/autoplug/gstspideridentity.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gst/autoplug/gstspideridentity.c b/gst/autoplug/gstspideridentity.c index dce71bc67c..4082559c83 100644 --- a/gst/autoplug/gstspideridentity.c +++ b/gst/autoplug/gstspideridentity.c @@ -178,8 +178,12 @@ gst_spider_identity_chain (GstPad *pad, GstBuffer *buf) { GstSpiderConnection *conn = (GstSpiderConnection *) list->data; list = g_list_next (list); - gst_element_set_eos (GST_ELEMENT (conn->src)); - gst_pad_push (conn->src->src, GST_BUFFER (gst_event_new (GST_EVENT_EOS))); + if (conn->current != (GstElement *) conn->src) { + GST_DEBUG (GST_CAT_AUTOPLUG, "sending EOS to unconnected element %s from %s", + GST_ELEMENT_NAME (conn->src), GST_ELEMENT_NAME (ident)); + gst_element_set_eos (GST_ELEMENT (conn->src)); + gst_pad_push (conn->src->src, GST_BUFFER (gst_event_new (GST_EVENT_EOS))); + } } } /* end hack for current event stuff here */