summaryrefslogtreecommitdiff
path: root/ext/mimic
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.co.uk>2010-05-07 19:15:31 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.co.uk>2010-05-07 19:15:31 -0400
commitf1a88ed76b3419d4084e55acbf3a243119731a28 (patch)
tree2b9023e3b040a8a6d18caf8140e1dd398053a32d /ext/mimic
parent418a79186882e36a3b162d1bd53d98f6a0121467 (diff)
downloadgstreamer-plugins-bad-f1a88ed76b3419d4084e55acbf3a243119731a28.tar.gz
mimdec: Don't try to re-send the same event more than once
Diffstat (limited to 'ext/mimic')
-rw-r--r--ext/mimic/gstmimdec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/mimic/gstmimdec.c b/ext/mimic/gstmimdec.c
index b7f9216fd..e678f560e 100644
--- a/ext/mimic/gstmimdec.c
+++ b/ext/mimic/gstmimdec.c
@@ -271,6 +271,7 @@ gst_mimdec_chain (GstPad * pad, GstBuffer * in)
GST_OBJECT_UNLOCK (mimdec);
if (event)
result = gst_pad_push_event (mimdec->srcpad, event);
+ event = NULL;
GST_OBJECT_LOCK (mimdec);
if (!result) {
GST_WARNING_OBJECT (mimdec, "gst_pad_push_event failed");
@@ -393,21 +394,20 @@ gst_mimdec_sink_event (GstPad * pad, GstEvent * event)
mimdec->need_newsegment = FALSE;
GST_OBJECT_UNLOCK (mimdec);
- res = gst_pad_push_event (mimdec->srcpad, event);
- }
break;
+ }
case GST_EVENT_FLUSH_STOP:
GST_OBJECT_LOCK (mimdec);
mimdec->need_newsegment = TRUE;
GST_OBJECT_UNLOCK (mimdec);
- res = gst_pad_push_event (mimdec->srcpad, event);
break;
default:
- res = gst_pad_push_event (mimdec->srcpad, event);
break;
}
+ res = gst_pad_push_event (mimdec->srcpad, event);
+
done:
gst_object_unref (mimdec);