Use GArray type in gst-launch

Sebastian Dröge sebastian at centricular.com
Fri Jun 12 13:05:31 PDT 2015


On Fr, 2015-06-12 at 04:02 -0700, deepthips wrote:
> I have a qamtuner plugin which has a property pidarray. The array 
> should have
> pmt pid and pcr pid. 
> In code, I do like this and it works:
> 
> GArray * gpidarray;
> gpidarray = g_array_new( FALSE, FALSE, sizeof(guint16));
> g_array_append_val (gpidarray, pmt_pid);
> g_object_set( src_element, "pidarray", gpidarray, NULL);
> 
> I want the same to be done through gst-launch.
> I tried:
> gst-launch qamtuner 'pidarray={176,187}'  ! sinkbin
> 
> Got the error:
> 
> WARNING: erroneous pipeline: could not set property "pidarray" in 
> element
> "qamtuner0" to "{176,187}"
> 
> Please let me know the correct usage.

You can't set GArray typed properties from gst-launch. You have to
write code for that.

Also gst-launch is really only a debugging/testing tool, don't write
your applications with it.

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150612/eef6717e/attachment.sig>


More information about the gstreamer-devel mailing list