[vlc-commits] commit: vod_rtsp: fix scope of variables (Pierre Ynard )
git at videolan.org
git at videolan.org
Tue Jun 1 07:04:14 CEST 2010
vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Tue Jun 1 07:03:57 2010 +0200| [9c9912267983327fcf4da6e442ec208f4d460a51] | committer: Pierre Ynard
vod_rtsp: fix scope of variables
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9c9912267983327fcf4da6e442ec208f4d460a51
---
modules/misc/rtsp.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/modules/misc/rtsp.c b/modules/misc/rtsp.c
index 849e6f1..5e17e53 100644
--- a/modules/misc/rtsp.c
+++ b/modules/misc/rtsp.c
@@ -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 )
More information about the vlc-commits
mailing list