diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-09-02 10:28:08 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-09-02 10:28:08 +0000 |
commit | 3351bc2d1807ad88d9871933819f8220d0f9d365 (patch) | |
tree | a98dc6f78361e49abd037a3141de444d7e6730ca /stream/librtsp | |
parent | 079a64ae8d93cb30adedbd1ebd4a40b36e805a99 (diff) | |
download | mpv-3351bc2d1807ad88d9871933819f8220d0f9d365.tar.bz2 mpv-3351bc2d1807ad88d9871933819f8220d0f9d365.tar.xz |
Move variable declaration to where it is used.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29622 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/librtsp')
-rw-r--r-- | stream/librtsp/rtsp_session.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/stream/librtsp/rtsp_session.c b/stream/librtsp/rtsp_session.c index 8b87d7fb41..72734e8776 100644 --- a/stream/librtsp/rtsp_session.c +++ b/stream/librtsp/rtsp_session.c @@ -106,7 +106,6 @@ rtsp_session_t *rtsp_session_start(int fd, char **mrl, char *path, char *host, 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 @@ rtsp_session_t *rtsp_session_start(int fd, char **mrl, char *path, char *host, { /* 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)) |