Article View: borland.public.cppbuilder.multimedia
Article #287Re: custom writer sink problem
From: Remy Lebeau (TeamB)
Date: Sat, 01 Jan 2005 20:10
Date: Sat, 01 Jan 2005 20:10
28 lines
1891 bytes
1891 bytes
"Jonathan Benedicto" <incorrect@no.server> wrote in message
news:41d5ae65$1@newsgroups.borland.com...
> I've tried to build my own custom writer sink using the windows media
> format sdk, but although the app runs fine, the writer sink's OnDataUnit
> method is never called.
Did you register the sink with IWMWriter? If it does not know about your
sink, it obviously can't use it.
> The QueryInterface is called twice, neither time asking for IID_IUnknown
> or IID_IWMWriterSink or IID_IWMRegisterCallback.
What exactly does it ask for? My guess would be that it is looking for
either IID_IWMWriterFileSink, IID_IWMWriterNetworkSink, or
IID_IWMWriterPushSink. Those are the three types that IWMWriter supports by
default. If that turns out to be the case, then I would surmise that your
sink is not being set up correctly.
Have you read the following article yet?
Working with Writer Sinks
http://msdn.microsoft.com/library/en-us/wmform95/htm/workingwithwritersinks.asp
Gambit
Technical Details
Message-ID:
<41d70359$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-in.ntli.net!newsrout1-win.ntli.net!ntli.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<41d5ae65$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10d0fc,e2e3d27f003f4ca5 X-Google-Attributes: gid10d0fc,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.multimedia References: <41d5ae65$1@newsgroups.borland.com> Subject: Re: custom writer sink problem Date: Sat, 1 Jan 2005 12:10:19 -0800 Lines: 30 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <41d70359$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1104610137 68.69.17.41 (1 Jan 2005 12:08:57 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-in.ntli.net!newsrout1-win.ntli.net!ntli.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail