IWMWriterNetworkSink::Close()
From: Ard (ard_at_RemoveMe.dv-rec.com)
Date: 06/03/04
- Next message: anonymous_at_discussions.microsoft.com: "More explaination of Memory leaks of IWMSyncReader"
- Previous message: Welchan: "how to use WMFSDK DRM appendum to package WMV file"
- Next in thread: Ard: "Re: IWMWriterNetworkSink::Close() - The code"
- Reply: Ard: "Re: IWMWriterNetworkSink::Close() - The code"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 3 Jun 2004 15:17:26 +0200
Hi,
We are creating an application from which we want to broadcast several live
streams. We came across the problem which several other people also have:
the Close() function of the IWMWriterNetworkSink object seems to block until
the connections from the other streams are closed. This happens with both
version 9.0 and version 9.5 of the Windows Media Format SDK.
I haven't seen a solution to this problem yet, so I decided to modify the
WMVNetWrite sample from the SDK to send out two streams using two separate
CNetWrite objects. I'm therefore assuming the code for initializing and
cleaning up the streams is correct. The first stream is automatically
stopped after 30 seconds and the second one after one minute. I notice the
following behaviour: If there are no connections to either stream, the
Close() function returns immediately. If there is a connection to the second
stream only, the Close() function for the first stream will block until the
second stream has no more active connections.
The CNetWrite objects do not share any variables, so I'm guessing there is
some connection between instances of these objects at a lower level.. Does
anyone have a clue what could be causing the Close() function to block and
how to prevent it?
If anyone would like to see the code, I can post it here or send it by mail.
Best regards,
Ard Oerlemans
- Next message: anonymous_at_discussions.microsoft.com: "More explaination of Memory leaks of IWMSyncReader"
- Previous message: Welchan: "how to use WMFSDK DRM appendum to package WMV file"
- Next in thread: Ard: "Re: IWMWriterNetworkSink::Close() - The code"
- Reply: Ard: "Re: IWMWriterNetworkSink::Close() - The code"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|