mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
realmedia: add special Real header to SETUP message only for Real servers
Fixes playback of Windows Media RTSP streams and other non-Real RTSP streams where the server errors out because it can't handle the Real-specific 'Required: com.real.retain-entity-for-setup' header we've been adding unconditionally in the recent past. For reference: rtsp://66.111.34.191:601/broadcast/alnour.rm rtsp://195.134.224.231/snowboard_100.wmv
This commit is contained in:
parent
6b9c72619a
commit
18e79995af
1 changed files with 7 additions and 2 deletions
|
@ -127,8 +127,10 @@ rtsp_ext_real_before_send (GstRTSPExtension * ext, GstRTSPMessage * request)
|
||||||
"Linux_2.4_6.0.9.1235_play32_RN01_EN_586");
|
"Linux_2.4_6.0.9.1235_play32_RN01_EN_586");
|
||||||
gst_rtsp_message_add_header (request, GST_RTSP_HDR_MAX_ASM_WIDTH, "1");
|
gst_rtsp_message_add_header (request, GST_RTSP_HDR_MAX_ASM_WIDTH, "1");
|
||||||
gst_rtsp_message_add_header (request, GST_RTSP_HDR_LANGUAGE, "en-US");
|
gst_rtsp_message_add_header (request, GST_RTSP_HDR_LANGUAGE, "en-US");
|
||||||
|
if (ctx->isreal) {
|
||||||
gst_rtsp_message_add_header (request, GST_RTSP_HDR_REQUIRE,
|
gst_rtsp_message_add_header (request, GST_RTSP_HDR_REQUIRE,
|
||||||
"com.real.retain-entity-for-setup");
|
"com.real.retain-entity-for-setup");
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case GST_RTSP_SETUP:
|
case GST_RTSP_SETUP:
|
||||||
|
@ -170,6 +172,9 @@ rtsp_ext_real_after_send (GstRTSPExtension * ext, GstRTSPMessage * req,
|
||||||
|
|
||||||
gst_rtsp_ext_real_calc_response_and_checksum (ctx->challenge2,
|
gst_rtsp_ext_real_calc_response_and_checksum (ctx->challenge2,
|
||||||
ctx->checksum, challenge1);
|
ctx->checksum, challenge1);
|
||||||
|
|
||||||
|
GST_DEBUG_OBJECT (ctx, "Found Real challenge tag");
|
||||||
|
ctx->isreal = TRUE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case GST_RTSP_DESCRIBE:
|
case GST_RTSP_DESCRIBE:
|
||||||
|
|
Loading…
Reference in a new issue