error message with 'spectrum' element

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

error message with 'spectrum' element

victorvictor
Hello

I'm using a 'spectrum' element that works fine. Source is either microphone(via 'alsasrc' element), or an audio file (via 'playbin2' element), or jack (via 'jackaudiosrc').

However, when I start the app in command line, I always get the error message  :

GLib-GObject-WARNING **: g_object_set_valist: object class `GstSpectrum' has no property named `'

My code looks like this :

spectrum = gst_element_factory_make ("spectrum", "spectrum");
g_assert (spectrum);    
g_object_set (G_OBJECT (spectrum), "bands", 11025, "interval", 200000000, "threshold", -80, NULL);

However, my app works fine, just as I want.

Any sugestions? Should I ignore it?


Victor

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: error message with 'spectrum' element

saepia
AFAIR adding casting to uint64 should help

I mean

g_object_set (G_OBJECT (spectrum), "bands", 11025, "interval",
(uint64)200000000, "threshold", -80, NULL);

m.

2011/6/18 Victor henri <[hidden email]>:

> Hello
>
> I'm using a 'spectrum' element that works fine. Source is either
> microphone(via 'alsasrc' element), or an audio file (via 'playbin2'
> element), or jack (via 'jackaudiosrc').
>
> However, when I start the app in command line, I always get the error
> messageĀ  :
>
> GLib-GObject-WARNING **: g_object_set_valist: object class `GstSpectrum' has
> no property named `'
>
> My code looks like this :
>
> spectrum = gst_element_factory_make ("spectrum", "spectrum");
> g_assert (spectrum);
> g_object_set (G_OBJECT (spectrum), "bands", 11025, "interval", 200000000,
> "threshold", -80, NULL);
>
> However, my app works fine, just as I want.
>
> Any sugestions? Should I ignore it?
>
>
> Victor
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

RE: error message with 'spectrum' element

victorvictor

Hello Marcin


> AFAIR adding casting to uint64 should help
>
> I mean
>
> g_object_set (G_OBJECT (spectrum), "bands", 11025, "interval",
> (uint64)200000000, "threshold", -80, NULL);

Yes casting to guint64 works; thank you so much!


> > However, when I start the app in command line, I always get the error
> > message  :
> >
> > GLib-GObject-WARNING **: g_object_set_valist: object class `GstSpectrum' has
> > no property named `'
> >
> > My code looks like this :
> >
> > spectrum = gst_element_factory_make ("spectrum", "spectrum");
> > g_assert (spectrum);
> > g_object_set (G_OBJECT (spectrum), "bands", 11025, "interval", 200000000,
> > "threshold", -80, NULL);
> >

Victor


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel