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
This commit is contained in:
parent
ec5648763d
commit
801c27689e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user