realmedia: add special Real header to DESCRIBE message only for Real

servers

Add headers that are specific to real only if a real server had been
detected by the OPTIONS message.
This commit is contained in:
Josep Torra 2009-04-15 11:09:56 +02:00
parent 3743c83ace
commit 8258daf87c

View file

@ -118,6 +118,7 @@ rtsp_ext_real_before_send (GstRTSPExtension * ext, GstRTSPMessage * request)
}
case GST_RTSP_DESCRIBE:
{
if (ctx->isreal) {
gst_rtsp_message_add_header (request, GST_RTSP_HDR_BANDWIDTH,
DEFAULT_BANDWIDTH);
gst_rtsp_message_add_header (request, GST_RTSP_HDR_GUID,
@ -127,7 +128,6 @@ rtsp_ext_real_before_send (GstRTSPExtension * ext, GstRTSPMessage * request)
"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_LANGUAGE, "en-US");
if (ctx->isreal) {
gst_rtsp_message_add_header (request, GST_RTSP_HDR_REQUIRE,
"com.real.retain-entity-for-setup");
}