[vlc-devel] [PATCH] Direct2D video output module

David Kaplan david at 2of1.org
Sun Jul 25 14:39:36 CEST 2010


On 25 July 2010 14:58, Laurent Aimar <fenrir at elivagar.org> wrote:

>
> >  So it seems that you need to check for EndDraw error code and recreate
> the
> > resources when needed. You can see how d3d does it.
>  d3d will be a bad example as you don't have the same constraints.
> I think that you simply need to call D2D_DestroyRenderTarget and
> D2D_ResizeRenderTarget.
>
>  That makes me think that
> > info.has_pictures_invalid = true;
> in the open function should be changed to
> > info.has_pictures_invalid = false;
> as in fact you never need to recreate the picture pool.
>
> Will change that.
If it's destroyed, we need to call Create again. Resize will fail unless
there is a render target and according to the msdn docs, it needs to be
recreated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20100725/3482d18d/attachment.html>


More information about the vlc-devel mailing list