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