summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--AUTHORS1
-rw-r--r--server/tests/test-gst.cpp4
2 files changed, 5 insertions, 0 deletions
diff --git a/AUTHORS b/AUTHORS
index 17979475..c5cf2ecd 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -86,5 +86,6 @@ Patches also contributed by
Hunter Sezen <orbea@riseup.net>
Simon Chopin <simon.chopin@canonical.com>
Geoffrey McRae <geoff@hostfission.com>
+ Antonio Larrosa <antonio.larrosa@gmail.com>
....send patches to get your name here...
diff --git a/server/tests/test-gst.cpp b/server/tests/test-gst.cpp
index 38a20889..066f60a7 100644
--- a/server/tests/test-gst.cpp
+++ b/server/tests/test-gst.cpp
@@ -614,7 +614,11 @@ create_pipeline(const char *desc, SampleProc sample_proc, void *param)
}
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);