SetMediaType problem
This is a discussion on SetMediaType problem within the Windows Programming forums, part of the Platform Specific Boards category; Code:
this->MediaType.majortype = MEDIATYPE_Video;
this->MediaType.subtype = MEDIASUBTYPE_RGB24;
this->MediaType.formattype = FORMAT_VideoInfo;
printf("SetMediaType...");
hr = this->pGrabber->SetMediaType(&this->MediaType);
if(FAILED(hr)){
printf("FAILED.\n");
return;
}
printf("done.\n");
crashes ...