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 640410 - codegen: Respect ignore-type for miniobjects
codegen: Respect ignore-type for miniobjects
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-python
unspecified
Other All
: Normal normal
: 0.10.22
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-01-24 12:36 UTC by Arun Raghavan
Modified: 2011-02-09 11:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
codegen: Respect ignore-type for miniobjects (838 bytes, patch)
2011-01-24 12:36 UTC, Arun Raghavan
committed Details | Review

Description Arun Raghavan 2011-01-24 12:36:02 UTC
gst-python 0.10.21 dies with gst-plugins-base older than 0.10.32 because miniobject types are not completely ignored as they should be. I get an error like:

  GEN    pbutils.c
***INFO*** The coverage of global functions is 100.00% (24/24)
***INFO*** The coverage of methods is 100.00% (1/1)
***INFO*** There are no declared virtual proxies.
***INFO*** There are no declared virtual accessors.
***INFO*** There are no declared interface proxies.  CC     pbutils_la-pbutils.lo
pbutils.c: In function 'pypbutils_register_classes':
pbutils.c:983:60: error: 'GST_TYPE_DISCOVERER_INFO' undeclared (first use in this function)
pbutils.c:983:60: note: each undeclared identifier is reported only once for each function it appears in
pbutils.c:984:66: error: 'GST_TYPE_DISCOVERER_STREAM_INFO' undeclared (first use in this function)
pbutils.c:985:69: error: 'GST_TYPE_DISCOVERER_CONTAINER_INFO' undeclared (first use in this function)
pbutils.c:986:65: error: 'GST_TYPE_DISCOVERER_AUDIO_INFO' undeclared (first use in this function)
pbutils.c:987:65: error: 'GST_TYPE_DISCOVERER_VIDEO_INFO' undeclared (first use in this function)
pbutils.c:988:61: error: 'GST_TYPE_ENCODING_PROFILE' undeclared (first use in this function)
pbutils.c:989:70: error: 'GST_TYPE_ENCODING_CONTAINER_PROFILE' undeclared (first use in this function)
pbutils.c:990:66: error: 'GST_TYPE_ENCODING_VIDEO_PROFILE' undeclared (first use in this function)
pbutils.c:991:66: error: 'GST_TYPE_ENCODING_AUDIO_PROFILE' undeclared (first use in this function)
pbutils.c:992:60: error: 'GST_TYPE_ENCODING_TARGET' undeclared (first use in this function)
make[3]: *** [pbutils_la-pbutils.lo] Error 1
make[3]: Leaving directory `/home/arun/work/gnome2/gst-python/gst'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/arun/work/gnome2/gst-python/gst'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/arun/work/gnome2/gst-python'
make: *** [all] Error 2

Attaching a fix for this.
Comment 1 Arun Raghavan 2011-01-24 12:36:05 UTC
Created attachment 179156 [details] [review]
codegen: Respect ignore-type for miniobjects
Comment 2 Florian Reinhard 2011-01-24 13:13:00 UTC
Review of attachment 179156 [details] [review]:

works for me
Comment 3 Tim-Philipp Müller 2011-02-09 11:54:13 UTC
commit c95985640f68f46235a5829227684a6aa3f9d615
Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
Date:   Mon Jan 24 17:55:55 2011 +0530

    codegen: Respect ignore-type for miniobjects
    
    https://bugzilla.gnome.org/show_bug.cgi?id=640410

commit 93fd2d4f43ced070fbb1b8a0e4d33d23601957d5
Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
Date:   Mon Jan 24 17:56:16 2011 +0530

    codegen: Handle empty lines in overrides gracefully
    
    Without this, having an empty line in an override will cause codegen to
    unceremoniously choke to death.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=640341