videorate: Do not fail setting caps on flushing pad
Avoiding to error out when flushing "at the wrong time" for example. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9013>
This commit is contained in:
parent
3715b0b7b8
commit
d21c1f13d1
@ -1101,6 +1101,11 @@ gst_video_rate_sink_event (GstBaseTransform * trans, GstEvent * event)
|
||||
GST_WARNING_OBJECT (videorate,
|
||||
"Could not resend caps after closing " " segment");
|
||||
|
||||
if (GST_PAD_IS_FLUSHING (trans->srcpad)) {
|
||||
gst_caps_unref (rolled_back_caps);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
GST_ELEMENT_ERROR (videorate, CORE, NEGOTIATION,
|
||||
("Could not resend caps after closing segment"), (NULL));
|
||||
gst_caps_unref (rolled_back_caps);
|
||||
|
Loading…
x
Reference in New Issue
Block a user