如何在gstreamer中设置元素的水槽垫的属性? [英] How to set the property of sink pad of element in gstreamer?
本文介绍了如何在gstreamer中设置元素的水槽垫的属性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在程序中设置水槽垫的属性 例如:
How to set the property of sink pad in program for example:
sin_00::outWidth=1280 sin_00::outHeight=720 in this way pipeline was run using gst-launch-0.10 .....
并设置此属性,我已经使用了gst_pad_set_property()
API,但它不起作用
它显示以下错误:
And to set this property Ive used gst_pad_set_property()
API but its not working
it shows following error :
3_video_temp.c: In function 'main':
3_video_temp.c:551: warning: implicit declaration of function 'gst_pad_set_property'
/tmp/cc2zDbzt.o: In function `main':
/home/project/compWorkspace/Edubeam/3_video_temp.c:551: undefined reference to `gst_pad_set_property'
collect2: ld returned 1 exit status
make: *** [all] Error 1
请告知如何尽快设置该值.
Please tell how to set that value as soon as possible.
推荐答案
如果打击垫具有属性(如videomixer中的打击垫具有),则只需像使用任何属性一样使用g_object_set,就像这样:
If the pads have properties (like the pads in videomixer has), you just use g_object_set like you would with any property, so something like:
g_object_set (pad, "width", 1280, NULL);
这篇关于如何在gstreamer中设置元素的水槽垫的属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文