<div dir="ltr"><div class="gmail_quote"><div>Hello guys, <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
> I've done this several times in various ways, to share a buffer created in a callback with create() or fill(). For matroxsrc[0] I used a single mutex protected buffer, and for kayasrc[1] I've used GAsyncQueue.<br>
> <br>
> [0]: <a href="https://github.com/joshdoe/gst-plugins-vision/blob/master/sys/matrox/gstmatroxsrc.c" rel="noreferrer" target="_blank">https://github.com/joshdoe/gst-plugins-vision/blob/master/sys/matrox/gstmatroxsrc.c</a><br>
> [1]: <a href="https://github.com/joshdoe/gst-plugins-vision/blob/master/sys/kaya/gstkayasrc.c" rel="noreferrer" target="_blank">https://github.com/joshdoe/gst-plugins-vision/blob/master/sys/kaya/gstkayasrc.c</a><br>
<br></blockquote><div>John, the matrox example especially is going to be really useful.<br></div><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
And some more (they are a bit countless):<br>
<br>
<a href="https://git.linuxtv.org/libcamera.git/tree/src/gstreamer/gstlibcamerasrc.cpp" rel="noreferrer" target="_blank">https://git.linuxtv.org/libcamera.git/tree/src/gstreamer/gstlibcamerasrc.cpp</a><br>
<a href="https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/blob/master/sys/v4l2/gstv4l2src.c" rel="noreferrer" target="_blank">https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/blob/master/sys/v4l2/gstv4l2src.c</a><br>
<a href="https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/blob/master/sys/winks/gstksvideosrc.c" rel="noreferrer" target="_blank">https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/blob/master/sys/winks/gstksvideosrc.c</a><br>
<br></blockquote><div><br></div><div>Thank You so much Nicolas for the examples. They are certainly going to be useful. </div><div><br></div><div></div><div></div><div>My schedule os packed for a few days but I'll certainly make sure whatever the result is of my experiments, it gets documented to whatever extent possible.</div><div><br></div><div></div><div>Warm regards,<br></div></div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Mandar Joshi</div><div>Czar Softech</div><div><i><a href="https://www.czarsoftech.com" target="_blank">https://www.czarsoftech.com</a></i><br></div></div></div></div>