[MPlayer-dev-eng] [PATCH] fix direct3d crash on window minimization

Roger Pack rogerdpack2 at gmail.com
Sat Nov 12 22:09:28 CET 2011


>  This comment is not worded the same as the others, but I think
> it conveys the same meaning. So this would only reduce the number
> of problem instances to one but the comment would still have to be
> changed.
>
>  I looked a bit deeper, so here comes my analysis:
>
>  If the window is minimized the VO gets a resize event. When
> handling the resize event, vo direct3d destroys the osd textures
> and creates them again with a size fitting the new window size.
>
>  This works well normally, but fails in case of minimization
> because then the sizes are 0 and the texture creation fails.
> This causes the crash later when draw_osd() gets invoked.
>
>  I did not think about a proper solution yet.

Thanks for your attention to this, looking forward to a fix (or we
could just use that patch as a work around or the like).
-r


More information about the MPlayer-dev-eng mailing list