From 5fc7340a70c35ce4e96fd8b9382e8d52638ca50c Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Wed, 19 Mar 2025 14:55:58 -0300 Subject: [PATCH] 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: --- subprojects/gst-plugins-good/gst/imagefreeze/gstimagefreeze.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subprojects/gst-plugins-good/gst/imagefreeze/gstimagefreeze.c b/subprojects/gst-plugins-good/gst/imagefreeze/gstimagefreeze.c index d48532c928..b7bef65bd1 100644 --- a/subprojects/gst-plugins-good/gst/imagefreeze/gstimagefreeze.c +++ b/subprojects/gst-plugins-good/gst/imagefreeze/gstimagefreeze.c @@ -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;