Help: I'm trying to play a video with gstreamer in a `winit` window (my application's window), but it opens a new window instead

Eds Savage krulex.em at gmail.com
Mon Dec 21 02:15:15 UTC 2020


that did it! thanks a lot for the help. I have one more question, i'm
trying to set_render_rectangle, I tried on both the created sink and the
playbin casted to VideoOverlay but neither worked, here's the code
https://gist.github.com/WuChanGG/18da3beb59c4a65c9ab4f854dc73b417

El dom, 20 dic 2020 a las 4:07, Sebastian Dröge (<sebastian at centricular.com>)
escribió:

> On Sun, 2020-12-20 at 12:06 +0200, Sebastian Dröge wrote:
>
> On Sat, 2020-12-19 at 18:44 -0600, Eds Savage wrote:
>  debug.txt
> <https://drive.google.com/file/d/1s42f7_PpgJHPSAoVl-QbOchBp75WDATC/view?usp=drive_web>
> This is the debug output, I only ran it for less than 5 minutes but let me
> know if you require me to run it for a longer period.
>
> This is a bug in d3d11videosink. It's already expecting the window handle
> to be set before reaching READY state, while it should wait until PAUSED.
>
> playbin is creating d3d11videosink, setting its state to READY and only if
> that doesn't fail it is adding it to itself and would be able to set the
> window handle.
> But at that point d3d11videosink expects the window handle to be set
> already, so instead it created its own window.
>
> See https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/issues/1485 which
> I just created about that.
>
>
> Ah I forgot to add. A workaround for that would be to explicitly create
> d3d11videosink in your code, set the window handle on it and then set it
> for the "video-sink" property of playbin.
>
> --
>
> Sebastian Dröge, Centricular Ltd · https://www.centricular.com
> <http://www.centricular.com>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20201220/6e83936d/attachment.htm>


More information about the gstreamer-devel mailing list