Use GArray type in gst-launch

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

Use GArray type in gst-launch

deeps8us
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.
Reply | Threaded
Open this post in threaded view
|

Re: Use GArray type in gst-launch

Sebastian Dröge-3
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

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

signature.asc (968 bytes) Download Attachment