codecs: h264: Fix wrong type of ret variable

This ret is not a GstFlowReturn. This broke v4l2 decoder which does not
implement new_picture() virtual function.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1154>
This commit is contained in:
Nicolas Dufresne 2021-10-14 14:35:45 -04:00 committed by GStreamer Marge Bot
parent b3710aa68d
commit da464bde5f

View file

@ -1278,7 +1278,7 @@ gst_h264_decoder_parse_slice (GstH264Decoder * self, GstH264NalUnit * nalu)
GstH264DecoderClass *klass = GST_H264_DECODER_GET_CLASS (self);
GstH264Picture *picture = NULL;
GstH264Picture *first_field = NULL;
gboolean ret = TRUE;
GstFlowReturn ret = GST_FLOW_OK;
g_assert (priv->current_frame);