imagefreeze: Set seqnum from segment too

This is the right behavior, setting from seeks is also OK but we should take the seqnums from segment into account too

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9015>
This commit is contained in:
Thibault Saunier 2025-03-19 14:55:58 -03:00 committed by GStreamer Marge Bot
parent 9e3d251c23
commit 5fc7340a70

View File

@ -643,6 +643,7 @@ gst_image_freeze_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
/* fall-through */
case GST_EVENT_SEGMENT:
GST_DEBUG_OBJECT (pad, "Dropping event");
self->seqnum = GST_EVENT_SEQNUM (event);
gst_event_unref (event);
ret = TRUE;
break;