GNOME Bugzilla – Bug 791157
GStreamer Basic Tutorial 8 compile error
Last modified: 2017-12-03 10:59:22 UTC
The example code in GStreamer Basic Tutorial available at https://gstreamer.freedesktop.org/documentation/tutorials/basic/short-cutting-the-pipeline.html is returning the following compile error: basic-tutorial-8.c: In function ‘main’: basic-tutorial-8.c:172:11: error: ‘audio_caps_text’ undeclared (first use in this function); did you mean ‘audio_caps’? g_free (audio_caps_text); ^~~~~~~~~~~~~~~ audio_caps The solution seems to be simple to delete the affected line as there is no audio_caps_text to be freed at all. After removing this line the codes runs without problems.
Thanks for reporting, this is fixed in GIT now and should appear on the website in a bit. The line is unneeded indeed and only appears in the text of the tutorial, not in the actual code available from here: https://cgit.freedesktop.org/gstreamer/gst-docs/tree/examples/tutorials/basic-tutorial-8.c The same mistake in playback-tutorial-3. commit 6cf853997a30aaae673814a87bc133c94e1398ca (HEAD -> master, origin/master, origin/HEAD) Author: Sebastian Dröge <sebastian@centricular.com> Date: Sun Dec 3 12:57:25 2017 +0200 Remove audio_caps_text in the tutorials The caps are created from a GstAudioInfo, not from a string. https://bugzilla.gnome.org/show_bug.cgi?id=791157