basetextoverlay: Clear reconfigure flags before negotation

This avoids negotiating twice. Current the _setcaps() patch does
not clear the initial reconfigure flags, which lead to systematic
double renegotiation.

http://bugzilla.gnome.org/show_bug.cgi?id=751157
This commit is contained in:
Nicolas Dufresne 2015-07-20 16:20:24 -04:00
parent 2308014963
commit d10959fd36

View file

@ -729,6 +729,9 @@ gst_base_text_overlay_negotiate (GstBaseTextOverlay * overlay, GstCaps * caps)
GST_DEBUG_OBJECT (overlay, "performing negotiation");
/* Clear any pending reconfigure to avoid negotiating twice */
gst_pad_check_reconfigure (overlay->srcpad);
if (!caps)
caps = gst_pad_get_current_caps (overlay->video_sinkpad);
else