Best way of setting enum parameters of elements.

Engin Yüce enginy88 at gmail.com
Mon Mar 24 05:12:34 PDT 2014


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>:

> 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> 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 using GStreamer 0.10.36.
>
> Many thanks for your help.
> -Engin YUCE
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>


-- 
| c0d3 = <Cr4Ck^M at st3r> |
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140324/373aa638/attachment.html>


More information about the gstreamer-devel mailing list