changeset 22703:7526ff6035c1

Support application/smil as mimetype for smil-over-realrtsp Fixes rtsp://www.russiantvonline.com/smils/live.smil
author rtogni
date Sun, 18 Mar 2007 16:50:26 +0000
parents 4fdfa619d08a
children ea1ea68543ca
files stream/librtsp/rtsp_session.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/stream/librtsp/rtsp_session.c	Sun Mar 18 16:33:04 2007 +0000
+++ b/stream/librtsp/rtsp_session.c	Sun Mar 18 16:50:26 2007 +0000
@@ -140,7 +140,8 @@
     }
 	
     rtsp_session->real_session = init_real_rtsp_session ();
-    if(!strncmp(h->streams[0]->mime_type, "application/vnd.rn-rmadriver", h->streams[0]->mime_type_size)) {
+    if(!strncmp(h->streams[0]->mime_type, "application/vnd.rn-rmadriver", h->streams[0]->mime_type_size) ||
+       !strncmp(h->streams[0]->mime_type, "application/smil", h->streams[0]->mime_type_size)) {
       rtsp_session->real_session->header_len = 0;
       rtsp_session->real_session->recv_size = 0;
       rtsp_session->real_session->rdt_rawdata = 1;