Re: Why pReceivePin->ReceiveConnection is getting failed in my code in this code?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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.
.



Relevant Pages

  • Re: Yet another "network cable unplugged" issue (w/DSL)
    ... I have ATT DSL service on two PCs, the main one in my basement office, and secondarily on my son's PC upstairs. ... I should mention that my main PC uses a 2wire 1000HW DSL modem, and the second one connects via HPNA with a 2wire PC Port USB connection. ... The PC Port is properly connected as indicated by its power light, as well as being connected to its phone line, which is in turn connected to the DSL filter which is plugged into the wall. ... I suspect that the ATT tech replaced your original 2wire filter that went between your 2wire gateway and the wall jack with a standard DSL filter. ...
    (microsoft.public.windowsxp.network_web)
  • Re: Data View loosing state?
    ... can you send it to me at the hotmail address for WSS FAQ ... > fine until you do a postback. ... So it receives the filter ... so it has to re-pass its connection information incase the value ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: OT udp port 138 BROWSER traffic
    ... >> dsl issues extend from at least June, and I could say more, but won't. ... >> issues that are interfering with my connection at their end. ... >> happening is the router is simply ignoring my traffic, ... it was a BAD filter that was not doing it's job. ...
    (comp.os.linux.security)
  • Re: Yet another "network cable unplugged" issue (w/DSL)
    ... and the second one connects via HPNA with a 2wire PC Port USB connection." ... filter into the wall jack. ... it should go through the filter. ... I have ATT DSL service on two PCs, ...
    (microsoft.public.windowsxp.network_web)
  • Re: ConnectionString property error when viewing form in designer
    ... DataTabledatatables, Int32 startRecord, Int32 maxRecords, String ... startRecord, Int32 maxRecords, String srcTable, IDbCommand command, ... at SPSGData.SPSGDataAdaptor.Fill(ReminderSet thisDataSet, String filter) ... connection information is not set up. ...
    (microsoft.public.dotnet.framework.windowsforms)