summaryrefslogtreecommitdiff
path: root/gst/pnm/gstpnmdec.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/pnm/gstpnmdec.c')
-rw-r--r--gst/pnm/gstpnmdec.c1
1 files changed, 1 insertions, 0 deletions
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;
}