diff rtsp.c @ 3859:8bde52c0934c libavformat

Implement Realmedia-compatible DESCRIBE command.
author rbultje
date Mon, 01 Sep 2008 13:46:50 +0000
parents 055f8385670c
children d8fce96bb3ab
line wrap: on
line diff
--- a/rtsp.c	Sun Aug 31 20:21:00 2008 +0000
+++ b/rtsp.c	Mon Sep 01 13:46:50 2008 +0000
@@ -1125,6 +1125,15 @@
              "DESCRIBE %s RTSP/1.0\r\n"
              "Accept: application/sdp\r\n",
              s->filename);
+    if (rt->server_type == RTSP_SERVER_RDT) {
+        /**
+         * The Require: attribute is needed for proper streaming from
+         * Realmedia servers.
+         */
+        av_strlcat(cmd,
+                   "Require: com.real.retain-entity-for-setup\r\n",
+                   sizeof(cmd));
+    }
     rtsp_send_cmd(s, cmd, reply, &content);
     if (!content) {
         err = AVERROR_INVALIDDATA;