]> git.sesse.net Git - vlc/commitdiff
rtsp.c: BeOS fix. variables can't be declared in the middle of the function.
authorChristophe Mutricy <xtophe@videolan.org>
Wed, 8 Mar 2006 22:30:53 +0000 (22:30 +0000)
committerChristophe Mutricy <xtophe@videolan.org>
Wed, 8 Mar 2006 22:30:53 +0000 (22:30 +0000)
modules/misc/rtsp.c

index 124340b68083a728853dcfe64ef903bb966b2f4c..efaee4abc026027c07575731873d3cf89715155d 100644 (file)
@@ -1133,6 +1133,7 @@ static char *SDPGenerate( const vod_media_t *p_media, httpd_client_t *cl )
     int i, i_size;
     char *p, *psz_sdp, ip[NI_MAXNUMERICHOST], ipv;
     const char *psz_control;
+    lldiv_t d;
 
     if( httpd_ServerIP( cl, ip ) == NULL )
         return NULL;
@@ -1195,7 +1196,7 @@ static char *SDPGenerate( const vod_media_t *p_media, httpd_client_t *cl )
 
     if( p_media->i_length > 0 )
     {
-        lldiv_t d = lldiv( p_media->i_length / 1000, 1000 );
+        d = lldiv( p_media->i_length / 1000, 1000 );
         p += sprintf( p, "a=range:npt=0-"I64Fd".%03u\r\n", d.quot,
                       (unsigned)d.rem );
     }