mirror of
https://github.com/mpv-player/mpv
synced 2025-03-24 12:22:25 +00:00
- 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> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7144 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
ee38afc1ad
commit
d4197da915
@ -111,7 +111,7 @@ extern "C" void demux_open_rtp(demuxer_t* demuxer) {
|
||||
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 @@ extern "C" void demux_close_rtp(demuxer_t* demuxer) {
|
||||
|
||||
// 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) {
|
||||
|
Loading…
Reference in New Issue
Block a user