GetMediaType Causing Crash
From: Dave J. (dju_at_nospam.com)
Date: 06/29/04
- Next message: Thore Karlsen [MVP DX]: "Re: GetMediaType Causing Crash"
- Previous message: EyesGluedShut: "Re: MSVidCtl via Visual Basic or VBScript"
- Next in thread: Thore Karlsen [MVP DX]: "Re: GetMediaType Causing Crash"
- Reply: Thore Karlsen [MVP DX]: "Re: GetMediaType Causing Crash"
- Reply: Kervala: "Re: GetMediaType Causing Crash"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 29 Jun 2004 00:43:19 GMT
Hi,
I'm having a problem with GetMediaType that is crashing in quartz.dll.
I have a transform filter based on CTransformFilter. Ever since I modified the
filter's GetMediaType function to change the output media's dimensions, it
crashes in quartz.dll depending on the size that I've arbitrarily chosen for the
output format.
The filter supports one media type of RGB24. The input size is 720 x 480. The
output size that causes the crash is 1507 x 240. But if I use an output size of
1440 x 240 then there's no crash. So the output media size effects whether
there's a crash or not. It looks like the crash happens whenever I use an output
buffer size that is larger than the input buffer.
If I change the dimensions of the output media type, do I have to override
CTransformFilter::InitializeOutputSample? I suspect that the output buffer is
not the correct size. (Just thought of that one. I'll go look for that after I
get done writing this).
I can paste the code for CMyTransformFilter::GetMediaType here if anyone needs
to see it.
Thanks for any help,
Dave
- Next message: Thore Karlsen [MVP DX]: "Re: GetMediaType Causing Crash"
- Previous message: EyesGluedShut: "Re: MSVidCtl via Visual Basic or VBScript"
- Next in thread: Thore Karlsen [MVP DX]: "Re: GetMediaType Causing Crash"
- Reply: Thore Karlsen [MVP DX]: "Re: GetMediaType Causing Crash"
- Reply: Kervala: "Re: GetMediaType Causing Crash"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|