basetransform: Ensure to set the RECONFIGURE flag again if reconfiguration failed

It might've failed just because of flushing or other things, and we
should retry again on the next possibility if something ever calls in
here again.

https://bugzilla.gnome.org/show_bug.cgi?id=774623
This commit is contained in:
Sebastian Dröge 2016-11-17 17:37:16 +02:00
parent 7b29403e06
commit f08c8d2da3

View file

@ -1482,6 +1482,10 @@ gst_base_transform_reconfigure (GstBaseTransform * trans)
}
done:
if (!ret)
gst_pad_mark_reconfigure (trans->srcpad);
return ret;
}
@ -1940,6 +1944,8 @@ gst_base_transform_sink_eventfunc (GstBaseTransform * trans, GstEvent * event)
/* clear any pending reconfigure flag */
gst_pad_check_reconfigure (trans->srcpad);
ret = gst_base_transform_setcaps (trans, trans->sinkpad, caps);
if (!ret)
gst_pad_mark_reconfigure (trans->srcpad);
forward = FALSE;
break;