mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-11 16:40:12 +00:00
Fix build with gstreamer 1.20.x
gstreamer-plugins-base 1.20 includes a new member in the
GstAppSinkCallbacks struct:
gboolean (*new_event) (GstAppSink *appsink, gpointer user_data);
So it has to be initialized in order to build test-gst.cpp
successfully.
(added in
0a657d6db5
)
Acked-by: Frediano Ziglio <freddy77@gmail.com>
This commit is contained in:
parent
ab9ad87c5f
commit
46e3a57ccd
1
AUTHORS
1
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...
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user