id3demux set propery prefer-v1 fails

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

id3demux set propery prefer-v1 fails

Jesu Anuroop Suresh
Hi All,

     Does any one tried setting the property of the id3demux ?


when I try to set it using the

GstElement *demux = gst_element_factory_make ("id3demux", "id3-demuxer0");

if (!demux)
{
      g_print ("NO MEM Exiting.\n");
      return 1;
}
g_object_set (G_OBJECT (demuxer), "prefer-v1", "true", NULL);


It gives the following error and does not work

(<unknown>:5543): GLib-GObject-WARNING **: value "TRUE" of type `gboolean' is invalid or out of range for property `prefer-v1' of type `gboolean'

Regards
Jesu Anuroop Suresh



Reply | Threaded
Open this post in threaded view
|

Re: id3demux set propery prefer-v1 fails

Tim-Philipp Müller-2
On Fri, 2011-01-28 at 06:49 -0800, Jesu Anuroop Suresh wrote:

> g_object_set (G_OBJECT (demuxer), "prefer-v1", "true", NULL);
>
> It gives the following error and does not work
>
> (<unknown>:5543): GLib-GObject-WARNING **: value "TRUE" of type `gboolean'
> is invalid or out of range for property `prefer-v1' of type `gboolean'

Try:

 g_object_set (demuxer, "prefer-v1", TRUE, NULL);

It's a vararg function, the type you pass needs to match the type shown
in gst-inspect. (The gst-launch utility will convert the string
automatically, but g_object_set() can't do that).

Cheers
 -Tim



------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel