each thread will PLAY a URL, and maybe exit if any network occurs, and
Release it's surfaces, then restart with new URL(has different sized video),
so the CreateSurface, tmp->Release, main->GetSubSurface, sub->Release maybe
occurs the same time. should lock here?

2008/1/3, Denis Oliver Kropp <[EMAIL PROTECTED]>:
>
> Deng XueFeng wrote:
> > hi,
> >      how to change the pixel format of tmp surface got by GetSubSurface?
>
> You don't get a sub surface of a tmp surface. I thought about this
> (example with two threads):
>
> - Create Main Surface (&pMain)
> - GetSubSurface (pMain, NULL, &pSub1)
> - GetSubSurface (pMain, NULL, &pSub2)
> - Create Temp Surface (&pTmp1)
> - Create Temp Surface (&pTmp2)
>
> Thread1
> - pSub1->Blit( pSub1, pTmp1 )
>
> Thread2
> - pSub2->Blit( pSub2, pTmp2 )
>
> --
> Best regards,
> Denis Oliver Kropp
>
> .------------------------------------------.
> | DirectFB - Hardware accelerated graphics |
> | http://www.directfb.org/                 |
> "------------------------------------------"
>
_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to