<div dir="ltr">Hi,<br><br>On Tue, May 16, 2017 at 5:46 PM, 张若 <<a href="mailto:zr92zr@gmail.com">zr92zr@gmail.com</a>> wrote:<br>><br>> In 3, I forget to put 1 line while writing the email:<br>> gst_plugin_template_transform (GstBaseTransform * base, GstBuffer *inbuf, GstBuffer * outbuf)<br>> {<br>>    GstMapInfo map_in; <br>>    GstMapInfo map_out;<br>>    gst_buffer_map (inbuf, &map_in, GST_MAP_READ); <br>>    gst_buffer_map (outbuf, &map_out, GST_MAP_WRITE);<br>>    map_out.data = map_in.data;<div><br></div><div>This won't work.  memcpy() it for test.  If you wanna play with GstBuffer and GstMemory, </div><div>here is links:</div><div><a href="https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstBuffer.html">https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstBuffer.html</a><br></div><div><a href="https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstBuffer.html">https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstBuffer.html</a><br></div><div><br>>    gst_buffer_unmap (inbuf, &map_in);<br>>    gst_buffer_unmap (outbuf, &map_out);<br>>   return GST_FLOW_OK;<br>> }<br>-- </div><div>            yashi</div><div><br></div></div>