Best way of setting enum parameters of elements.

Dušan Poizl poizl at maindata.sk
Mon Mar 24 05:37:29 PDT 2014


when you run gst-inspect videoflip it print all parameters and their 
posible values. You can look into source code of this utility to find it 
can obtain this information.

Dn(a 24.03.2014 13:12, Engin Yüce wrote / napísal(a):
> Hello Wim,
>
> Thanks for pointing out. I think "rotate-180" is the internal name. 
> Then how do I know GST_VIDEO_FLIP_METHOD_180 is corresponds to 
> "rotate-180"?
> Is it possible to use the public API string names?
>
> Thanks,
> -engin
>
>
> 2014-03-24 12:08 GMT+02:00 Wim Taymans <wim.taymans at gmail.com 
> <mailto:wim.taymans at gmail.com>>:
>
>     Hi,
>
>     the easiet would be:
>
>     gst_util_set_object_arg (videoflip, "method", "rotate-180");
>
>     Wim
>
>
>     On Mon, Mar 24, 2014 at 9:54 AM, Engin Yüce <enginy88 at gmail.com
>     <mailto:enginy88 at gmail.com>> wrote:
>>     Hi,
>>
>>     I'm having trouble with setting some element's properties which
>>     has enum values.
>>     For example I want to set videoflip element's "method" property
>>     to GST_VIDEO_FLIP_METHOD_180, so far I have only managed to do
>>     this with:
>>
>>     g_object_set(videoflip, "method", 2, NULL);
>>     //GST_VIDEO_FLIP_METHOD_180
>>
>>     I think it's ugly to setting with index numbers. What is the
>>     correct way of setting the enum parameters? I'm usingGStreamer
>>     0.10.36.
>>
>>     Many thanks for your help.
>>     -Engin YUCE
>>
>
>     _______________________________________________
>     gstreamer-devel mailing list
>     gstreamer-devel at lists.freedesktop.org
>     <mailto:gstreamer-devel at lists.freedesktop.org>
>     http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
>
>
> -- 
> | c0d3 = <Cr4Ck^M at st3r> |
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140324/95b7f675/attachment-0001.html>


More information about the gstreamer-devel mailing list