jpeg2000parse: do hard reset if gst_base_parse_finish_frame fails

This commit is contained in:
Aaron Boxer 2019-08-05 21:53:54 -04:00 committed by GStreamer Merge Bot
parent a35157debf
commit 67cffd70ad

View file

@ -771,7 +771,7 @@ gst_jpeg2000_parse_handle_frame (GstBaseParse * parse,
gst_caps_unref (current_caps);
gst_buffer_unmap (frame->buffer, &map);
ret = gst_base_parse_finish_frame (parse, frame, jpeg2000parse->frame_size);
gst_jpeg2000_parse_reset (parse, FALSE);
gst_jpeg2000_parse_reset (parse, (ret != GST_FLOW_OK));
return ret;
beach: