gstreramer plugin smit and connect

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

gstreramer plugin smit and connect

Stephenwei
This post was updated on .
Hi,
I write a gstreamer plugin to do something
This plugin will emit the structure 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/
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel