mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +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
|
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;
|
||||||
|
|
Loading…
Reference in a new issue