From b482dd1ab1c78d3b37f5b7138382bd30692e9179 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 30 May 2002 19:06:44 +0000 Subject: [PATCH] Fix event problem. Original commit message from CVS: Fix event problem. --- ext/mad/gstmad.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ext/mad/gstmad.c b/ext/mad/gstmad.c index cf8a90c908..0fc5267ad6 100644 --- a/ext/mad/gstmad.c +++ b/ext/mad/gstmad.c @@ -689,6 +689,7 @@ gst_mad_chain (GstPad *pad, GstBuffer *buffer) gint64 value = GST_EVENT_DISCONT_OFFSET (event, i).value; gint64 time; GstFormat format; + GstEvent *new_event; /* see how long the input bytes take */ format = GST_FORMAT_TIME; @@ -702,7 +703,8 @@ gst_mad_chain (GstPad *pad, GstBuffer *buffer) mad->base_time = time; gst_event_free (event); - event = gst_event_new_discontinuous (FALSE, GST_FORMAT_TIME, time, NULL); + new_event = gst_event_new_discontinuous (FALSE, GST_FORMAT_TIME, time, NULL); + gst_pad_event_default (pad, new_event); break; } } @@ -710,6 +712,7 @@ gst_mad_chain (GstPad *pad, GstBuffer *buffer) mad->tempsize = 0; /* we don't need to restart when we get here */ mad->restart = FALSE; + break; } default: gst_pad_event_default (pad, event);