mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
mimdec: Don't try to re-send the same event more than once
This commit is contained in:
parent
418a791868
commit
f1a88ed76b
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue