Re: How to use gst_memory_new_wrapped wrap opencv mat ?
is OK, nothing is wrong
v4l2->mat->do something -> appsrc
According to that /The process crash at "gst_memory_new_wrapped" so many
times but some time it will be OK./ .
The true is that, the process did not crash at "gst_memory_new_wrapped". It
crash at "g_signal_emit_by_name". Cause when i send the mat to appsrc
buffer. The thread own mat.data destruct himself when the function loop
again, it's a fundamental of opencv. So i forget that, when appsrc need the
buffer, it can't access it or wrong format.
Some things beyond the topic
I think the screen is GREEN as of the size of "GstMemory" warped opencv mat
is not correct, may there is other reason for that.