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 586463 - Building gstreamer-sharp gives a lot of warnings
Building gstreamer-sharp gives a lot of warnings
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-sharp
git master
Other All
: Normal normal
: 0.9.x
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-06-20 12:50 UTC by Maarten Bosmans
Modified: 2009-09-11 08:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Avoid some C# compiler warnings (4.41 KB, patch)
2009-06-20 12:52 UTC, Maarten Bosmans
none Details | Review
Avoid some C# compiler warnings (4.41 KB, patch)
2009-06-20 12:56 UTC, Maarten Bosmans
committed Details | Review
Add GstIterator generated code (13.09 KB, patch)
2009-06-20 12:59 UTC, Maarten Bosmans
needs-work Details | Review
Update Gstreamer.metadata (6.37 KB, patch)
2009-06-20 13:03 UTC, Maarten Bosmans
committed Details | Review
Add GstIterator generated code v2 (13.26 KB, patch)
2009-06-20 21:04 UTC, Maarten Bosmans
committed Details | Review

Description Maarten Bosmans 2009-06-20 12:50:04 UTC
In different phases of the build process (gapi-fixup, gapi-gen, csc) there are a lot of warnings. Some of these are useful pointers to things that should be fixed, others can be ignored.
Comment 1 Maarten Bosmans 2009-06-20 12:52:50 UTC
Created attachment 137061 [details] [review]
Avoid some C# compiler warnings

Most csc warnings are about hidden members for the base class. This patch adresses these.
Comment 2 Maarten Bosmans 2009-06-20 12:56:32 UTC
Created attachment 137062 [details] [review]
Avoid some C# compiler warnings

Most csc warnings are about hidden members for the base class. This patch adresses these.
Comment 3 Maarten Bosmans 2009-06-20 12:59:34 UTC
Created attachment 137063 [details] [review]
Add GstIterator generated code

This patch is more about replacing custom code with generated code.
It resolves some gapi-gen warnings about it not knowing about the GstIterator type.
Comment 4 Maarten Bosmans 2009-06-20 13:03:12 UTC
Created attachment 137064 [details] [review]
Update Gstreamer.metadata

This patch mainly uses some xpath syntax to avoid a couple of warnings from the fixup/generator.

Note that it adds a line for GST_PADDING/2, is this correct?
With this patch there is only one (rather nontrivial) reference to GST_PADDING left after fixup.
Comment 5 Sebastian Dröge (slomo) 2009-06-20 18:09:08 UTC
(In reply to comment #1)
> Created an attachment (id=137061) [edit]
> Avoid some C# compiler warnings
> 
> Most csc warnings are about hidden members for the base class. This patch
> adresses these.

Except one part this is not correct:
+  <attr path="/api/namespace/object[@cname='GstBaseSrc']/virtual_method[@cname='query']" name="hidden">1</attr>

The query vm of GstBaseSrc is different from the query vm of GstElement. How do we fix this? :)

(In reply to comment #3)
> Created an attachment (id=137063) [edit]
> Add GstIterator generated code
> 
> This patch is more about replacing custom code with generated code.
> It resolves some gapi-gen warnings about it not knowing about the GstIterator
> type.

Good idea :) But you need to store the Iterator inside the private Enumerator, otherwise the Iterator might get GC'd before the Enumerator and the Enumerator would then crash next time a native function is called.

Comment 6 Maarten Bosmans 2009-06-20 21:04:48 UTC
Created attachment 137089 [details] [review]
Add GstIterator generated code v2

This patch stores the Iterator in the Enumerator to prevent it from being GCed.
Comment 7 Maarten Bosmans 2009-06-20 21:11:09 UTC
> Except one part this is not correct:
> +  <attr path="/api/namespace/object[@cname='GstBaseSrc']/virtual_method
> [@cname='query']" name="hidden">1</attr>
> 
> The query vm of GstBaseSrc is different from the query vm of GstElement. 
> How do we fix this? :)

Hmm, if that is the case the GstBaseSrc.Query method should be marked with the new keyword. But I don't think that it's possible to add this to autogenerated code, like it is with the acces modifier by doing something like 
<attr name="access">private</attr>.

I think that we should leave it as it was. So if you would just leave this part out of the patch when applying it, that would be great. I then just have to live with the compiler warning about it.
Comment 8 Sebastian Dröge (slomo) 2009-06-21 08:37:36 UTC
Thanks, it's all committed now. And I've renamed BaseSrc.Query to .SrcQuery to prevent the conflict (you might want to override both in a subclass).