codecs: h264: Fix wrong type of ret variable
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 14 Oct 2021 18:35:45 +0000 (14:35 -0400)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 14 Oct 2021 20:12:03 +0000 (20:12 +0000)
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>

subprojects/gst-plugins-bad/gst-libs/gst/codecs/gsth264decoder.c

index 92a4806..aee2eee 100644 (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);