]> git.sesse.net Git - vlc/commitdiff
vod_rtsp: fix scope of variables
authorPierre Ynard <linkfanel@yahoo.fr>
Tue, 1 Jun 2010 05:03:57 +0000 (07:03 +0200)
committerPierre Ynard <linkfanel@yahoo.fr>
Tue, 1 Jun 2010 05:03:57 +0000 (07:03 +0200)
modules/misc/rtsp.c

index 849e6f1bded7f984e8301af953472b7ca19b8651..5e17e53f568b7dd17cfb38ebeb0be9d88731acc2 100644 (file)
@@ -334,8 +334,6 @@ static void Close( vlc_object_t * p_this )
 {
     vod_t *p_vod = (vod_t *)p_this;
     vod_sys_t *p_sys = p_vod->p_sys;
-    block_t *p_block_cmd;
-    rtsp_cmd_t cmd;
 
     /* Stop command thread */
     vlc_object_kill( p_vod );
@@ -344,7 +342,8 @@ static void Close( vlc_object_t * p_this )
 
     while( block_FifoCount( p_sys->p_fifo_cmd ) > 0 )
     {
-        p_block_cmd = block_FifoGet( p_sys->p_fifo_cmd );
+        rtsp_cmd_t cmd;
+        block_t *p_block_cmd = block_FifoGet( p_sys->p_fifo_cmd );
         memcpy( &cmd, p_block_cmd->p_buffer, sizeof(cmd) );
         block_Release( p_block_cmd );
         if ( cmd.i_type == RTSP_CMD_TYPE_DEL )