From 995dcb04e0369882fb2f7f581b1832e9981d9f71 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Wed, 13 Nov 2024 17:01:32 +1100 Subject: [PATCH] tests/onvif: silence a maybe-unitialized warning Part-of: --- subprojects/gst-rtsp-server/tests/check/gst/onvif.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/subprojects/gst-rtsp-server/tests/check/gst/onvif.c b/subprojects/gst-rtsp-server/tests/check/gst/onvif.c index 610c503413..c93d15f0c8 100644 --- a/subprojects/gst-rtsp-server/tests/check/gst/onvif.c +++ b/subprojects/gst-rtsp-server/tests/check/gst/onvif.c @@ -173,6 +173,9 @@ test_src_create (GstPushSrc * psrc, GstBuffer ** buffer) case FRAME_TYPE_B: buf_size = 5; break; + default: + g_assert_not_reached (); + return GST_FLOW_ERROR; } *buffer = gst_buffer_new_allocate (NULL, buf_size, NULL);