# HG changeset patch # User reimar # Date 1251887288 0 # Node ID d3df5ca129179d6c3549dc8bd109b07c7bc3df08 # Parent 26e0c6a16e576dca3ef6d3f958fcb1e0b658e2b9 Move variable declaration to where it is used. diff -r 26e0c6a16e57 -r d3df5ca12917 stream/librtsp/rtsp_session.c --- 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))