After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 791157 - GStreamer Basic Tutorial 8 compile error
GStreamer Basic Tutorial 8 compile error
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: documentation
unspecified
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-12-03 10:07 UTC by Rodrigo Severo
Modified: 2017-12-03 10:59 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Rodrigo Severo 2017-12-03 10:07:57 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.
Comment 1 Sebastian Dröge (slomo) 2017-12-03 10:59:22 UTC
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