basic-tutorial-13.c doesn't compile
I opened https://gstreamer.freedesktop.org/documentation/tutorials/basic/playback-speed.html?gi-language=c , then I copy-pasted basic-tutorial-13.c
and tried to compile it. I got (on recent debian sid):
# gcc basic-tutorial-13.c -o basic-tutorial-13 `pkg-config --cflags --libs gstreamer-1.0`
basic-tutorial-13.c: In function ‘send_seek_event’:
basic-tutorial-13.c:21:52: error: incompatible type for argument 2 of ‘gst_element_query_position’
if (!gst_element_query_position (data->pipeline, &format, &position)) {
^~~~~~~
In file included from /usr/include/gstreamer-1.0/gst/gst.h:90,
from basic-tutorial-13.c:3:
/usr/include/gstreamer-1.0/gst/gstutils.h:1051:89: note: expected ‘GstFormat’ {aka ‘enum <anonymous>’} but argument is of type ‘GstFormat *’ {aka ‘enum <anonymous> *’}
gst_element_query_position (GstElement *element, GstFormat format, gint64 *cur);
~~~~~~~~~~^~~~~~