Best way of setting enum parameters of elements.

Wim Taymans wim.taymans at gmail.com
Mon Mar 24 03:08:03 PDT 2014


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
> 
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140324/0bfaf447/attachment.html>


More information about the gstreamer-devel mailing list