pnmdec: drop frame in case of _handle() failure
authorReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Sat, 17 Oct 2015 19:48:11 +0000 (12:48 -0700)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 20 Oct 2015 07:12:32 +0000 (10:12 +0300)
Allows baseclass to handle it from there

Related to:

https://bugzilla.gnome.org/show_bug.cgi?id=756563

gst/pnm/gstpnmdec.c

index 2f7e774..8bcb094 100644 (file)
@@ -228,6 +228,7 @@ gst_pnmdec_handle_frame (GstVideoDecoder * decoder, GstVideoCodecFrame * frame)
 
   r = gst_video_decoder_allocate_output_frame (decoder, frame);
   if (r != GST_FLOW_OK) {
+    gst_video_decoder_drop_frame (GST_VIDEO_DECODER (s), frame);
     goto out;
   }