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 during the call to set media type. pGrabber is valid from a previous call. The problem is I dont even get the report of FAILED. It literally crashes during the call.
This might be associated with my using 2008 express and having to put in the MS recommended hack for Qedit.h, so i will try compiling it under codeblocks or something if I get time to install it. If I just skip setting the media type, then it works fine, but this same code works fine when compiled under 2005 (full version). Right now I am workign with a cheap camer that only supports 24 bit so its not an issue, but I plan on gettign a better camera that supports more fromats, so I need to be able to set the mediatype