mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-25 00:28:21 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue