[vlc-devel] Request for addition to "modules/demux/livedotcom.cpp"
Ross Finlayson
finlayson at live.com
Sat Aug 21 05:29:52 CEST 2004
The RTSP client code (in "livedotcom.cpp") currently doesn't do any special
handling of incoming RTCP "BYE" packets, which the remote RTSP server will
send if the stream ends - e.g., if the server comes to the end of the
stream's input file. Because of this, vlc currently doesn't notice that
the stream has ended.
The following simple addition will make VLC handle these packets, by
calling "StreamClose()".
In the "Open()" routine, somewhere after the "tk" structure is created and
set up, add the following, for each "MediaSubsession" object "sub":
if (sub->rtcpInstance() != NULL) {
sub->rtcpInstance()->setByeHandler(StreamClose, tk);
}
Ross Finlayson
LIVE.COM
<http://www.live.com/>
--
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>
More information about the vlc-devel
mailing list