mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +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);
|
r = gst_video_decoder_allocate_output_frame (decoder, frame);
|
||||||
if (r != GST_FLOW_OK) {
|
if (r != GST_FLOW_OK) {
|
||||||
|
gst_video_decoder_drop_frame (GST_VIDEO_DECODER (s), frame);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue