<div>Hi,</div><div><br></div><div>the easiet would be:</div><div><br></div>

gst_util_set_object_arg (videoflip, "method", "rotate-180");<div><br></div><div>Wim<br><br>On Mon, Mar 24, 2014 at 9:54 AM, Engin YĆ¼ce <enginy88@gmail.com> wrote:<br>
<blockquote type="cite"><div dir="ltr"><div><div><div>Hi,<br><br></div><span tabindex="-1" id="result_box" class="" lang="en"><span class="">I'm having trouble with setting some element's properties which has enum values.<br></span></span></div>

<span tabindex="-1" id="result_box" class="" lang="en"><span class="">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:<br>

<br>g_object_set(videoflip, "method", 2, NULL); //GST_VIDEO_FLIP_METHOD_180<br><br></span></span></div><div><span tabindex="-1" id="result_box" class="" lang="en"><span class="">I think it's ugly to setting with index numbers. What is the correct way of setting the enum parameters? I'm using</span></span><span tabindex="-1" id="result_box" class="" lang="en"><span class=""> GStreamer 0.10.36.<br>

<br></span></span></div><div><span tabindex="-1" id="result_box" class="" lang="en"><span class="">Many thanks for your help.<br></span></span></div><div><span tabindex="-1" id="result_box" class="" lang="en"><span class="">-Engin YUCE<br>

</span></span></div><div><span tabindex="-1" id="result_box" class="" lang="en"><span class=""><br></span></span></div></div>
</blockquote></div>