I use IMediaDet to open a video source file,source code as follows:
hr = CoCreateInstance(CLSID_MediaDet, NULL, CLSCTX_INPROC_SERVER,IID_IMediaDet,(void **)&pDet);
if(hr == S_OK)
When I open a source file,such as "media.c",an ASSERT error message box will be shown when executed at line:hr=pDet->put_Filename(wFilename);
I think there should be no assert message box displayed,as if a file is an invalid video source,the returned value can indicate the fail status.
I need some body to kindly tell me how can I know if a file is an openable video/audio file?
Thanks very much