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 514241 - patch to add Gst::Buffer
patch to add Gst::Buffer
Status: RESOLVED FIXED
Product: gstreamermm
Classification: Bindings
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2008-02-04 09:30 UTC by Siavash Safi
Modified: 2011-01-16 23:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Gst::Buffer patch (12.71 KB, patch)
2008-02-04 09:38 UTC, Siavash Safi
none Details | Review
Gst::Buffer patch (12.38 KB, patch)
2008-02-05 20:41 UTC, Siavash Safi
none Details | Review

Description Siavash Safi 2008-02-04 09:30:38 UTC
The patch adds Gst::Buffer
Comment 1 Siavash Safi 2008-02-04 09:38:09 UTC
Created attachment 104368 [details] [review]
Gst::Buffer patch
Comment 2 Murray Cumming 2008-02-04 11:22:44 UTC
Thanks. I don't think it's quite ready:

- Several enums are hand-written. Why can't _WRAP_ENUM() be used for these. In general, please add explanatory comments in the file when doing unusual things such as this.
- void Buffer::copy_metadata(Glib::RefPtr<Buffer> other_buffer, BufferCopyFlags flags):
  This should take a const RefPtr<>&. Why isn't _WRAP_METHOD() used for this?
- Several methods should be const and/or have const method overloads.
Comment 3 Siavash Safi 2008-02-04 12:08:16 UTC
- _WRAP_ENUM() fails on those enums

- Buffer::copy_metadata(), The C API has silly argument order:
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#gst-buffer-copy-metadata

- I'll check all methods :)

I'll add comments and attach a new patch
Comment 4 Murray Cumming 2008-02-04 12:31:29 UTC
> - _WRAP_ENUM() fails on those enums

Please don't make me guess how it fails.

> Buffer::copy_metadata(), The C API has silly argument order

Oh, yes. That should be filed as a bug I think - other language bindings will also assume that the first parameter is a self/this.
Comment 5 Siavash Safi 2008-02-05 20:41:10 UTC
Created attachment 104504 [details] [review]
Gst::Buffer patch
Comment 6 Murray Cumming 2008-02-05 21:15:34 UTC
Thanks. I will commit this and make the corrections afterwards.