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 701812 - Compile errors when including <gst/audio/gstaudiobasesink.h>
Compile errors when including <gst/audio/gstaudiobasesink.h>
Status: RESOLVED WONTFIX
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-06-07 20:42 UTC by José Alburquerque
Modified: 2013-06-07 22:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
GStreamer: Small test case that includes <gst/audio/gstaudiobasesink.h> (40 bytes, text/x-csrc)
2013-06-07 20:42 UTC, José Alburquerque
Details

Description José Alburquerque 2013-06-07 20:42:03 UTC
Created attachment 246281 [details]
GStreamer: Small test case that includes <gst/audio/gstaudiobasesink.h>

Hi.  I don't know if I'm doing something wrong but I seem to be getting compile errors from including the <gst/audio/gstaudiobasesink.h>.  I'm attaching a small test file that just includes the file.  This is the compile error:

[09:06][jose@jose-desktop: /usr/src/jhbuild-sources/Tests]$ gcc gstreamer-test-includes.c $(pkg-config gstreamer-base-1.0 --cflags)
In file included from /opt/usr-jhbuild/include/gstreamer-1.0/gst/audio/audio.h:72:0,
                 from /opt/usr-jhbuild/include/gstreamer-1.0/gst/audio/gstaudioringbuffer.h:27,
                 from /opt/usr-jhbuild/include/gstreamer-1.0/gst/audio/gstaudiobasesink.h:54,
                 from gstreamer-test-includes.c:1:
/opt/usr-jhbuild/include/gstreamer-1.0/gst/audio/gstaudiobasesrc.h:94:3: error: unknown type name ‘GstAudioRingBuffer’
/opt/usr-jhbuild/include/gstreamer-1.0/gst/audio/gstaudiobasesrc.h:124:3: error: unknown type name ‘GstAudioRingBuffer’
/opt/usr-jhbuild/include/gstreamer-1.0/gst/audio/gstaudiobasesrc.h:133:1: error: unknown type name ‘GstAudioRingBuffer’
In file included from /opt/usr-jhbuild/include/gstreamer-1.0/gst/audio/audio.h:74:0,
                 from /opt/usr-jhbuild/include/gstreamer-1.0/gst/audio/gstaudioringbuffer.h:27,
                 from /opt/usr-jhbuild/include/gstreamer-1.0/gst/audio/gstaudiobasesink.h:54,
                 from gstreamer-test-includes.c:1:
/opt/usr-jhbuild/include/gstreamer-1.0/gst/audio/gstaudiosink.h:47:3: error: unknown type name ‘GstAudioBaseSink’
/opt/usr-jhbuild/include/gstreamer-1.0/gst/audio/gstaudiosink.h:73:3: error: unknown type name ‘GstAudioBaseSinkClass’
/opt/usr-jhbuild/include/gstreamer-1.0/gst/audio/gstaudiosink.h:80:46: error: unknown type name ‘GstAudioRingBufferSpec’
In file included from /opt/usr-jhbuild/include/gstreamer-1.0/gst/audio/audio.h:75:0,
                 from /opt/usr-jhbuild/include/gstreamer-1.0/gst/audio/gstaudioringbuffer.h:27,
                 from /opt/usr-jhbuild/include/gstreamer-1.0/gst/audio/gstaudiobasesink.h:54,
                 from gstreamer-test-includes.c:1:
/opt/usr-jhbuild/include/gstreamer-1.0/gst/audio/gstaudiosrc.h:78:44: error: unknown type name ‘GstAudioRingBufferSpec’
In file included from /opt/usr-jhbuild/include/gstreamer-1.0/gst/audio/audio.h:77:0,
                 from /opt/usr-jhbuild/include/gstreamer-1.0/gst/audio/gstaudioringbuffer.h:27,
                 from /opt/usr-jhbuild/include/gstreamer-1.0/gst/audio/gstaudiobasesink.h:54,
                 from gstreamer-test-includes.c:1:
/opt/usr-jhbuild/include/gstreamer-1.0/gst/audio/gstaudioiec61937.h:27:1: error: unknown type name ‘GstAudioRingBufferSpec’
/opt/usr-jhbuild/include/gstreamer-1.0/gst/audio/gstaudioiec61937.h:30:45: error: unknown type name ‘GstAudioRingBufferSpec’

Am I doing something wrong?
Comment 1 Tim-Philipp Müller 2013-06-07 21:03:24 UTC
No, nothing wrong on your end.

We had to switch to single includes for libraries for some bindings, and this is the fallout.

In >= 1.1.1 you need just a simple #include <gst/audio/audio.h>

Sorry about that, I don't think it's fixable in a way that doesn't cause these problems (I think it was tried).

See 'things to look out for' in:
http://lists.freedesktop.org/archives/gstreamer-announce/2013-June/000280.html
Comment 2 José Alburquerque 2013-06-07 22:25:06 UTC
Thanks.