changeset 29580:d3df5ca12917

Move variable declaration to where it is used.
author reimar
date Wed, 02 Sep 2009 10:28:08 +0000
parents 26e0c6a16e57
children ee34a7062df0
files stream/librtsp/rtsp_session.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/stream/librtsp/rtsp_session.c	Wed Sep 02 10:22:08 2009 +0000
+++ b/stream/librtsp/rtsp_session.c	Wed Sep 02 10:28:08 2009 +0000
@@ -106,7 +106,6 @@
   rtsp_session_t *rtsp_session = NULL;
   char *server;
   char *mrl_line = NULL;
-  rmff_header_t *h;
 
   rtsp_session = malloc (sizeof (rtsp_session_t));
   rtsp_session->s = NULL;
@@ -138,7 +137,7 @@
   {
     /* we are talking to a real server ... */
 
-    h=real_setup_and_get_header(rtsp_session->s, bandwidth, user, pass);
+    rmff_header_t *h=real_setup_and_get_header(rtsp_session->s, bandwidth, user, pass);
     if (!h) {
       /* got an redirect? */
       if (rtsp_search_answers(rtsp_session->s, RTSP_OPTIONS_LOCATION))