From 78c22c3cbd492ab124f2c8fcad85a51928c093cf Mon Sep 17 00:00:00 2001 From: "Reynaldo H. Verdejo Pinochet" Date: Sat, 17 Oct 2015 12:48:11 -0700 Subject: pnmdec: drop frame in case of _handle() failure Allows baseclass to handle it from there Related to: https://bugzilla.gnome.org/show_bug.cgi?id=756563 --- gst/pnm/gstpnmdec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/pnm/gstpnmdec.c b/gst/pnm/gstpnmdec.c index 2f7e774fe..8bcb09406 100644 --- a/gst/pnm/gstpnmdec.c +++ b/gst/pnm/gstpnmdec.c @@ -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; } -- cgit v1.2.1