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 341182 - Accessing playbin's streaminfo property from high languages sucks
Accessing playbin's streaminfo property from high languages sucks
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
0.10.x
Other Linux
: Normal normal
: 0.10.7
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-05-09 20:58 UTC by Sjoerd Simons
Modified: 2006-05-11 20:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Prove of concept patch (3.81 KB, patch)
2006-05-09 21:02 UTC, Sjoerd Simons
none Details | Review

Description Sjoerd Simons 2006-05-09 20:58:56 UTC
As the stream-info property of playbin is declared as a Pointer it's not really usefull for high-level languages (Python/ruby/etc).. There should be some way to get this information from the plugin which is somewhat more bindings-friendly..

This was discussed a little on the gst-devel list recently.
Comment 1 Sjoerd Simons 2006-05-09 21:02:28 UTC
Created attachment 65113 [details] [review]
Prove of concept patch

This patch solves the issue by putting the streaminfo objects in a GValueArray. Works nicely when used in the ruby bindings (should be fine for python too)
Comment 2 Thomas Vander Stichele 2006-05-11 20:59:44 UTC
renamed _values to _value_array for consistency.

Thanks for the patch, worked fine first try interactively in ipython.

More patches like this please !