mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
jpeg2000parse: parse_event: call base class at end
derived class should do it's work first before calling base
This commit is contained in:
parent
67cffd70ad
commit
bfee115d66
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue