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 784680 - audio-channels: bindings-friendly positions_from_mask
audio-channels: bindings-friendly positions_from_mask
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
unspecified
Other All
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-07-08 00:18 UTC by Mathieu Duponchelle
Modified: 2018-11-03 11:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
audio-channels: bindings-friendly positions_from_mask (3.51 KB, patch)
2017-07-08 00:18 UTC, Mathieu Duponchelle
needs-work Details | Review

Description Mathieu Duponchelle 2017-07-08 00:18:17 UTC
No amount of annotation tweaking seems enough to make
gst_audio_channel_positions_from_mask actually introspectable.
Comment 1 Mathieu Duponchelle 2017-07-08 00:18:21 UTC
Created attachment 355133 [details] [review]
audio-channels: bindings-friendly positions_from_mask
Comment 2 Sebastian Dröge (slomo) 2017-07-10 07:09:36 UTC
Comment on attachment 355133 [details] [review]
audio-channels: bindings-friendly positions_from_mask

GList is not very bindings friendly either, just look at the GINT_TO_POINTER() hack you're doing there :)

How about "GstAudioChannelPosition * gst_audio_channel_positions_array_from_mask(gint channels, guint64 channel_mask, gsize *n_positions)", and annotating "(array length=n_positions)" for the return value?
Comment 3 Mathieu Duponchelle 2017-10-12 16:19:58 UTC
> How about "GstAudioChannelPosition *
> gst_audio_channel_positions_array_from_mask(gint channels, guint64
> channel_mask, gsize *n_positions)", and annotating "(array
> length=n_positions)" for the return value?

That would indeed look better, if it worked :( I've opened https://bugzilla.gnome.org/show_bug.cgi?id=788890 with a simple test project to reproduce (https://github.com/MathieuDuponchelle/pygobject-enum-array-return)
Comment 4 GStreamer system administrator 2018-11-03 11:57:43 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/364.