diff --git a/gst/playback/gstdecodebin2.c b/gst/playback/gstdecodebin2.c index d402527ac7..9668849366 100644 --- a/gst/playback/gstdecodebin2.c +++ b/gst/playback/gstdecodebin2.c @@ -3432,10 +3432,8 @@ gst_decode_chain_free_internal (GstDecodeChain * chain, gboolean hide) if (chain->endpad) { if (chain->endpad->exposed) { - GstPad *endpad = GST_PAD_CAST (chain->endpad); - gst_pad_push_event (endpad, gst_event_new_flush_start ()); - gst_pad_push_event (endpad, gst_event_new_flush_stop (FALSE)); - gst_element_remove_pad (GST_ELEMENT_CAST (chain->dbin), endpad); + gst_element_remove_pad (GST_ELEMENT_CAST (chain->dbin), + GST_PAD_CAST (chain->endpad)); } decode_pad_set_target (chain->endpad, NULL);