Mercurial > mplayer.hg
changeset 7143:fdfc10c2e2d2
- Tell the RTSP client code to use the string "mplayer" in RTSP
"User-Agent:" fields. NOTE: This requires an up-to-date version of the
LIVE.COM Streaming Media libraries.
- Fix a bug that could cause mplayer to crash on exit if a "rtsp://" URL was bad.
patch by Ross Finlayson <finlayson@live.com>
author | arpi |
---|---|
date | Thu, 29 Aug 2002 20:19:33 +0000 |
parents | ea3f7a306873 |
children | 4f912998013e |
files | libmpdemux/demux_rtp.cpp |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_rtp.cpp Thu Aug 29 20:11:43 2002 +0000 +++ b/libmpdemux/demux_rtp.cpp Thu Aug 29 20:19:33 2002 +0000 @@ -111,7 +111,7 @@ char const* url = demuxer->stream->streaming_ctrl->url->url; extern int verbose; - rtspClient = RTSPClient::createNew(*env, verbose); + rtspClient = RTSPClient::createNew(*env, verbose, "mplayer"); if (rtspClient == NULL) { fprintf(stderr, "Failed to create RTSP client: %s\n", env->getResultMsg()); @@ -310,6 +310,7 @@ // Get the RTP state that was stored in the demuxer's 'priv' field: RTPState* rtpState = (RTPState*)(demuxer->priv); + if (rtpState == NULL) return; UsageEnvironment* env = NULL; TaskScheduler* scheduler = NULL; if (rtpState->mediaSession != NULL) {