tests/onvif: silence a maybe-unitialized warning

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7875>
This commit is contained in:
Matthew Waters 2024-11-13 17:01:32 +11:00
parent c0f4a855cc
commit 995dcb04e0

View file

@ -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);