From bfee115d668485f8e22ea30bfca42545c0dd3beb Mon Sep 17 00:00:00 2001 From: Aaron Boxer Date: Thu, 8 Aug 2019 15:26:22 -0400 Subject: [PATCH] jpeg2000parse: parse_event: call base class at end derived class should do it's work first before calling base --- gst/videoparsers/gstjpeg2000parse.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gst/videoparsers/gstjpeg2000parse.c b/gst/videoparsers/gstjpeg2000parse.c index ea35541963..42672ec5e9 100644 --- a/gst/videoparsers/gstjpeg2000parse.c +++ b/gst/videoparsers/gstjpeg2000parse.c @@ -201,13 +201,15 @@ gst_jpeg2000_parse_set_sink_caps (GstBaseParse * parse, GstCaps * caps) static gboolean gst_jpeg2000_parse_event (GstBaseParse * parse, GstEvent * event) { - gboolean res = GST_BASE_PARSE_CLASS (parent_class)->sink_event (parse, event); + gboolean res; switch (GST_EVENT_TYPE (event)) { case GST_EVENT_FLUSH_STOP: gst_base_parse_set_min_frame_size (parse, GST_JPEG2000_PARSE_MIN_FRAME_SIZE); + res = GST_BASE_PARSE_CLASS (parent_class)->sink_event (parse, event); break; default: + res = GST_BASE_PARSE_CLASS (parent_class)->sink_event (parse, event); break; } return res;