List Info

Thread: problem with g_object properties




problem with g_object properties
user name
2006-04-28 12:45:16
(SNIP)

> I'm writing a gstreamer plugin for a video streaming
library we use at 
> work (called blinky, but that's not the point here),
and I've got a 
> problem with my plugin's properties. When I set the
property at first, 
> it seems correctly set, but alas when I set the state
of my test 
> pipeline to PLAYING the property is broken.

You should also show were you register your object
properties, it is
possible you made a mistake there.

Thomas




-------------------------------------------------------
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
gstreamer-devel mailing list
gstreamer-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstream
er-devel
problem with g_object properties
user name
2006-04-28 13:08:17
Thomas Vander Stichele wrote:

>(SNIP)
>
>  
>
>>I'm writing a gstreamer plugin for a video
streaming library we use at 
>>work (called blinky, but that's not the point
here), and I've got a 
>>problem with my plugin's properties. When I set the
property at first, 
>>it seems correctly set, but alas when I set the
state of my test 
>>pipeline to PLAYING the property is broken.
>>    
>>
>
>You should also show were you register your object
properties, it is
>possible you made a mistake there.
>
>Thomas
>  
>
The properties are registered in the class_init function:

static void
gst_blinkysrc_class_init (GstBlinkySrcClass *klass)
{
  GObjectClass *gobject_class;
  GstElementClass *gstelement_class;

  gobject_class = (GObjectClass*) klass;
  gstelement_class = (GstElementClass*) klass;

  parent_class = g_type_class_ref (GST_TYPE_ELEMENT);

  g_object_class_install_property (gobject_class,
ARG_SILENT,
    g_param_spec_boolean ("silent",
"Silent", "Produce verbose output
?",
                          FALSE, G_PARAM_READWRITE));
  g_object_class_install_property (gobject_class,
ARG_BL_DEVICE,
    g_param_spec_string ("device",
"Device", "Blinky device to get data
from.",
                          "0",
G_PARAM_READWRITE));
  g_object_class_install_property (gobject_class,
ARG_BL_SYNCHRONIZE,
    g_param_spec_boolean ("sync",
"Synchronize", "Synchronize with
blinky device ?",
                          FALSE, G_PARAM_READWRITE));

  gobject_class->set_property =
gst_blinkysrc_set_property;
  gobject_class->get_property =
gst_blinkysrc_get_property;

  gstelement_class->change_state =
gst_blinky_src_change_state;
}

I used a plugin template perl script made by Luca Ognibene
to generate
the skeleton of my plugin.

Thx,
Corentin.



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
gstreamer-devel mailing list
gstreamer-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstream
er-devel
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )