Mercurial > mplayer.hg
diff libmpdemux/demux_rtp.cpp @ 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 | 2af81c9ed167 |
children | 0a936b10b3d8 |
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) {