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

Sebastian Dröge sebastian at centricular.com
Sun Dec 20 10:07:36 UTC 2020


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
> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20201220/50545270/attachment.htm>


More information about the gstreamer-devel mailing list