# HG changeset patch # User arpi # Date 1030652373 0 # Node ID fdfc10c2e2d2a182a94070b3bb7467517e39815a # Parent ea3f7a306873b6cfbc7d7388bdb31691fbbab041 - 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 diff -r ea3f7a306873 -r fdfc10c2e2d2 libmpdemux/demux_rtp.cpp --- 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) {