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 687154 - examples: error in level plugin example code
examples: error in level plugin example code
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
1.x
Other Linux
: Normal normal
: 1.0.3
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-10-29 21:52 UTC by Daniel C.
Modified: 2012-10-30 18:42 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Daniel C. 2012-10-29 21:52:39 UTC
Error in the example code of plugin level (or bug in plugin).

in line 48 return as type GValue (but "rms" is GArray) GValue->GArray¿? maybe.
list = gst_structure_get_value (s, "rms");

the variable list is of type GValue and the function in line 48 of example. this function request a object of type GValue and return the size of, but returns a fail of object types

channels = gst_value_list_get_size (list);

I compile the example in ubuntu 12.10, gst libs v1.0
Comment 1 Wim Taymans 2012-10-30 11:12:52 UTC
commit 0de4b76d3962463e385af73f7c785d06e643a4a3
Author: Wim Taymans <wim.taymans@collabora.co.uk>
Date:   Tue Oct 30 11:10:49 2012 +0000

    tests: fix level example
    
    Use the GValueArray in the message.
    
    Fixes https://bugzilla.gnome.org/show_bug.cgi?id=687154
Comment 2 Daniel C. 2012-10-30 18:42:04 UTC
Perfect super Wim!