imagefreeze: don't fail sending sticky events downstream

They will be repropagated anyway.
This commit is contained in:
Matthew Waters 2020-03-05 22:45:32 +11:00
parent 5dcbb6b0d8
commit 28f49e1fd5

View file

@ -592,7 +592,10 @@ gst_image_freeze_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
gst_image_freeze_reset (self);
/* fall through */
default:
ret = gst_pad_push_event (self->srcpad, event);
ret = gst_pad_push_event (self->srcpad, gst_event_ref (event));
if (GST_EVENT_IS_STICKY (event))
ret = TRUE;
gst_event_unref (event);
break;
}