jpeg2000parse: do hard reset if gst_base_parse_finish_frame fails
authorAaron Boxer <aaron.boxer@collabora.com>
Tue, 6 Aug 2019 01:53:54 +0000 (21:53 -0400)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 5 Nov 2019 21:21:51 +0000 (21:21 +0000)
gst/videoparsers/gstjpeg2000parse.c

index fcba59a..ea35541 100644 (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: