jpeg2000parse: parse_event: call base class at end

derived class should do it's work first before calling base
This commit is contained in:
Aaron Boxer 2019-08-08 15:26:22 -04:00 committed by GStreamer Merge Bot
parent 67cffd70ad
commit bfee115d66

View file

@ -201,13 +201,15 @@ gst_jpeg2000_parse_set_sink_caps (GstBaseParse * parse, GstCaps * caps)
static gboolean static gboolean
gst_jpeg2000_parse_event (GstBaseParse * parse, GstEvent * event) 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)) { switch (GST_EVENT_TYPE (event)) {
case GST_EVENT_FLUSH_STOP: case GST_EVENT_FLUSH_STOP:
gst_base_parse_set_min_frame_size (parse, gst_base_parse_set_min_frame_size (parse,
GST_JPEG2000_PARSE_MIN_FRAME_SIZE); GST_JPEG2000_PARSE_MIN_FRAME_SIZE);
res = GST_BASE_PARSE_CLASS (parent_class)->sink_event (parse, event);
break; break;
default: default:
res = GST_BASE_PARSE_CLASS (parent_class)->sink_event (parse, event);
break; break;
} }
return res; return res;