Re: Why pReceivePin->ReceiveConnection is getting failed in my code in this code?
- From: Tim Roberts <timr@xxxxxxxxx>
- Date: Thu, 05 Mar 2009 20:31:05 -0800
mahantesh <mahantagoudaec20@xxxxxxxxx> wrote:
Yes Sir, I am reading the data from file and pushing that raw data to
downstream filter, I have observed that if I read the file using
AddSourceFilter method then the connection between source and AVI
splitter is connected but if I use my push source filter then no
connection is taking place and also set the major type what yooooy
told and code is
p_mediatype->SetSubtype(&MEDIASUBTYPE_Avi);
p_mediatype->SetFormatType(&FORMAT_VideoInfo);
p_mediatype->SetType(&FORMAT_None);
No, no, no, you're not listening.
p_mediatype->SetType( &MEDIATYPE_Stream );
p_mediatype->SetSubtype( &MEDIASUBTYPE_Avi );
p_mediatype->SetFormatType( &FORMAT_None );
p_mediatype->SetSampleSize(p_vid_info_hdr-
bmiHeader.biSizeImage);
This is not right, either. You don't HAVE video data. Indeed, your filter
should not even KNOW that there is audio or video data inside, and there
shouldn't be a BITMAPINFOHEADER anywhere in your filter.
Just set the "sample size" to whatever block size you intend to use to read
from the file.
--
Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.
.
- Follow-Ups:
- References:
- Re: Why pReceivePin->ReceiveConnection is getting failed in my code in this code?
- From: Tim Roberts
- Re: Why pReceivePin->ReceiveConnection is getting failed in my code in this code?
- From: mahantesh
- Re: Why pReceivePin->ReceiveConnection is getting failed in my code in this code?
- From: Tim Roberts
- Re: Why pReceivePin->ReceiveConnection is getting failed in my code in this code?
- From: mahantesh
- Re: Why pReceivePin->ReceiveConnection is getting failed in my code in this code?
- Prev by Date: Re: Next Steps: Using IMSVidCtl in a vanilla C app
- Next by Date: Re: obtaining video capture filter
- Previous by thread: Re: Why pReceivePin->ReceiveConnection is getting failed in my code in this code?
- Next by thread: Re: Why pReceivePin->ReceiveConnection is getting failed in my code in this code?
- Index(es):
Relevant Pages
|