mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 05:16:13 +00:00
codecs: h264: Do not ignore end_picture() return value
If decoding failed because end_picture() failed, set the picture to nonexisting, this way output_picture() will be skipped. This avoids confusing special cases in output_picture() implementation.
This commit is contained in:
parent
390cbe1f00
commit
bd7db13412
1 changed files with 4 additions and 2 deletions
|
@ -1133,8 +1133,10 @@ gst_h264_decoder_finish_current_picture (GstH264Decoder * self)
|
||||||
|
|
||||||
klass = GST_H264_DECODER_GET_CLASS (self);
|
klass = GST_H264_DECODER_GET_CLASS (self);
|
||||||
|
|
||||||
if (klass->end_picture)
|
if (klass->end_picture) {
|
||||||
ret = klass->end_picture (self, priv->current_picture);
|
if (!klass->end_picture (self, priv->current_picture))
|
||||||
|
priv->current_picture->nonexisting = TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
/* finish picture takes ownership of the picture */
|
/* finish picture takes ownership of the picture */
|
||||||
ret = gst_h264_decoder_finish_picture (self, priv->current_picture);
|
ret = gst_h264_decoder_finish_picture (self, priv->current_picture);
|
||||||
|
|
Loading…
Reference in a new issue