mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 03:01:03 +00:00
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:
parent
7b29403e06
commit
f08c8d2da3
1 changed files with 6 additions and 0 deletions
|
@ -1482,6 +1482,10 @@ gst_base_transform_reconfigure (GstBaseTransform * trans)
|
||||||
}
|
}
|
||||||
|
|
||||||
done:
|
done:
|
||||||
|
|
||||||
|
if (!ret)
|
||||||
|
gst_pad_mark_reconfigure (trans->srcpad);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1940,6 +1944,8 @@ gst_base_transform_sink_eventfunc (GstBaseTransform * trans, GstEvent * event)
|
||||||
/* clear any pending reconfigure flag */
|
/* clear any pending reconfigure flag */
|
||||||
gst_pad_check_reconfigure (trans->srcpad);
|
gst_pad_check_reconfigure (trans->srcpad);
|
||||||
ret = gst_base_transform_setcaps (trans, trans->sinkpad, caps);
|
ret = gst_base_transform_setcaps (trans, trans->sinkpad, caps);
|
||||||
|
if (!ret)
|
||||||
|
gst_pad_mark_reconfigure (trans->srcpad);
|
||||||
|
|
||||||
forward = FALSE;
|
forward = FALSE;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue