File fix-build-with-gstreamer-1.20.patch of Package spice

Index: spice-0.15.0/server/tests/test-gst.cpp
===================================================================
--- spice-0.15.0.orig/server/tests/test-gst.cpp
+++ spice-0.15.0/server/tests/test-gst.cpp
@@ -614,7 +614,11 @@ create_pipeline(const char *desc, Sample
     }
 
     static const GstAppSinkCallbacks appsink_cbs_template =
+#if GST_CHECK_VERSION(1, 20, 0)
+        { NULL, NULL, new_sample, NULL, ._gst_reserved={NULL} };
+#else
         { NULL, NULL, new_sample, ._gst_reserved={NULL} };
+#endif
     GstAppSinkCallbacks appsink_cbs = appsink_cbs_template;
     gst_app_sink_set_callbacks(pipeline->appsink, &appsink_cbs, pipeline, NULL);
 
openSUSE Build Service is sponsored by