gstreramer plugin smit and python-gst connect

Stephenwei lofy.stephen at gmail.com
Sun Feb 14 06:40:38 UTC 2021


Hi,
I write a gstreamer plugin to detect some information. 
This plugin will emit the data and use connect function of python3-gst to
get information.
the sample as below:
gstreamer plugin:
int test =1;
 g_signal_emit(filter, gst_virtualfence_signals[SIGNAL_DETECTED], 0, &test);

python3-gst: 
def cb_test_function(object, m_draw_area, data)
    print(ctypes.cast(int(str(m_draw_area)[13:-1], 16),
ctypes.POINTER(ctypes.c_int)).contents)

This methon can work by ubuntu 1604, but crash by ubuntu 1804
Any idea?
Thanks

 



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list