I previously edited a simple video playback function
video () ;
this function was originally no problem, can run properly,
until the use of
int main()
{
std: : Thread t (video) ;
video();
t.join();
return 0;
}
concurrent opened video () function, one window is normal, another white screen, maximize the white screen will get a full screen shot, can be moved, resize, cropped parts will become black screen. Even back to single-threaded, the first renderfile created by the video player is also bound to white screen. I could really use some help
void video()
{
...//init
pGraph->RenderFile(L"D:\\Downloads\\movie.avi", NULL);//WHITE SCREEN
pGraph->RenderFile(L"D:\\Downloads\\movie1.avi", NULL);//normal
pGraph->RenderFile(L"D:\\Downloads\\movie2.avi", NULL);//normal
pCtrl->Run();//create 3 windows for play;
...//release
}