And return FLUSHING instead of NOT_NEGOTIATED on flushing pads.
https://bugzilla.gnome.org/show_bug.cgi?id=774623
ret = gst_video_aggregator_update_src_caps (vagg);
if (!ret) {
- if (timeout && gst_pad_needs_reconfigure (GST_AGGREGATOR_SRC_PAD (vagg))) {
+ gst_pad_mark_reconfigure (GST_AGGREGATOR_SRC_PAD (vagg));
+ if (timeout) {
guint64 frame_duration;
gint fps_d, fps_n;
vagg->priv->nframes++;
return GST_FLOW_NEEDS_DATA;
} else {
- return GST_FLOW_NOT_NEGOTIATED;
+ if (GST_PAD_IS_FLUSHING (GST_AGGREGATOR_SRC_PAD (vagg)))
+ return GST_FLOW_FLUSHING;
+ else
+ return GST_FLOW_NOT_NEGOTIATED;
}
}
}