videorate: log when rolling back previous caps

We were logging when restoring the current caps but not when it was
changed, making logs quite confusing.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5433>
This commit is contained in:
Guillaume Desmottes 2023-10-04 13:28:38 +02:00 committed by GStreamer Marge Bot
parent 9e137ea6a4
commit 8004b1650a

View file

@ -930,6 +930,9 @@ gst_video_rate_rollback_to_prev_caps_if_needed (GstVideoRate * videorate)
if (videorate->in_caps)
prev_caps = gst_caps_ref (videorate->in_caps);
GST_DEBUG_OBJECT (videorate, "rollback to previous caps %" GST_PTR_FORMAT,
prev_caps);
if (!gst_pad_send_event (GST_BASE_TRANSFORM_SINK_PAD (videorate),
gst_event_new_caps (videorate->prev_caps)
)) {