mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
amcvideodec: guard against not finding a valid frame in loop
Fixes sporadic crashes on finishing decoding a video. https://bugzilla.gnome.org/show_bug.cgi?id=761014
This commit is contained in:
parent
1fceac8122
commit
b276de7827
1 changed files with 1 additions and 1 deletions
|
@ -1300,7 +1300,7 @@ retry:
|
|||
"Frame is too late, dropping (deadline %" GST_STIME_FORMAT ")",
|
||||
GST_STIME_ARGS (deadline));
|
||||
flow_ret = gst_video_decoder_drop_frame (GST_VIDEO_DECODER (self), frame);
|
||||
} else if (self->codec_config == AMC_CODEC_CONFIG_WITH_SURFACE) {
|
||||
} else if (frame && self->codec_config == AMC_CODEC_CONFIG_WITH_SURFACE) {
|
||||
GstBuffer *outbuf;
|
||||
GstGLSyncMeta *sync_meta;
|
||||
GstVideoCodecState *state;
|
||||
|
|
Loading…
Reference in a new issue