diff stream/librtsp/rtsp_session.c @ 29263:0f1b5b68af32

whitespace cosmetics: Remove all trailing whitespace.
author diego
date Wed, 13 May 2009 02:58:57 +0000
parents c884d17bd005
children d3df5ca12917
line wrap: on
line diff
--- a/stream/librtsp/rtsp_session.c	Tue May 12 19:25:35 2009 +0000
+++ b/stream/librtsp/rtsp_session.c	Wed May 13 02:58:57 2009 +0000
@@ -77,7 +77,7 @@
 };
 
 /*
- * closes an rtsp connection 
+ * closes an rtsp connection
  */
 
 static void rtsp_close(rtsp_t *s) {
@@ -96,7 +96,7 @@
   if (s->user_agent) free(s->user_agent);
   rtsp_free_answers(s);
   rtsp_unschedule_all(s);
-  free(s);  
+  free(s);
 }
 
 //rtsp_session_t *rtsp_session_start(char *mrl) {
@@ -112,7 +112,7 @@
   rtsp_session->s = NULL;
   rtsp_session->real_session = NULL;
   rtsp_session->rtp_session = NULL;
- 
+
 //connect:
   *redir = 0;
 
@@ -164,7 +164,7 @@
         return NULL;
       }
     }
-	
+
     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) ||
        !strncmp(h->streams[0]->mime_type, "application/smil", h->streams[0]->mime_type_size)) {
@@ -239,12 +239,12 @@
     }
   }
   free(server);
-  
+
   return rtsp_session;
 }
 
 int rtsp_session_read (rtsp_session_t *this, char *data, int len) {
-  
+
   if (this->real_session) {
   int to_copy=len;
   char *dest=data;
@@ -257,7 +257,7 @@
   if (len < 0) return 0;
   if (this->real_session->recv_size < 0) return -1;
   while (to_copy > fill) {
-    
+
     memcpy(dest, source, fill);
     to_copy -= fill;
     dest += fill;
@@ -278,7 +278,7 @@
       return len-to_copy;
     }
   }
-  
+
   memcpy(dest, source, to_copy);
   this->real_session->recv_read += to_copy;
 
@@ -298,7 +298,7 @@
 
     if (l == 0)
       rtsp_session_end (this);
-    
+
     return l;
   }