<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mar. 7 juin 2022, 06 h 30, Kishan Dudhatra via gstreamer-devel <<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<p dir="auto">hello;<br>
</p>
<p dir="auto"><br>
</p>
<p dir="auto">issue posted : <a href="https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/issues/1722" title="https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/issues/1722" target="_blank" rel="noreferrer">
gst-plugins-bad</a><br>
</p>
<p dir="auto"><br>
</p>
<p dir="auto">I want to render GStreamer video on Wayland subsurface and using waylandsink.</p>
<p dir="auto"><br>
</p>
<p dir="auto">Currently i have created 1.main surface 2.Subsurface as shown in attached image.<br>
</p>
<p dir="auto"><br>
</p>
<div dir="auto" style="margin-top:0px;margin-bottom:0px">
<p dir="auto">I want to render the GStreamer video on subsurface.</p></div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">As subsurface have no framebuffer or size, this is pretty inconvenient way. I would rather suggest to use the existing mechanism. through the sync message handler reply to the message the query a window handle. Pass your top level surface handle, and position that using gst_video_overlay_set_render_rectangle().</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><div dir="auto" style="margin-top:0px;margin-bottom:0px">
<p dir="auto"><br>
</p>
<p dir="auto">I checked the Waylandsink source and discovered that it creates the surface itself and renders video on that surface. So, what I'm trying to figure out is how to render video on my own applications subsurface.</p>
</div>
<div dir="auto" style="margin-top:0px;margin-bottom:0px">
<br>
</div>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
</div>

</blockquote></div></div></div>