Commit 9c991226 authored by Pierre Ynard's avatar Pierre Ynard

vod_rtsp: fix scope of variables

parent 6c00c0fc
...@@ -334,8 +334,6 @@ static void Close( vlc_object_t * p_this ) ...@@ -334,8 +334,6 @@ static void Close( vlc_object_t * p_this )
{ {
vod_t *p_vod = (vod_t *)p_this; vod_t *p_vod = (vod_t *)p_this;
vod_sys_t *p_sys = p_vod->p_sys; vod_sys_t *p_sys = p_vod->p_sys;
block_t *p_block_cmd;
rtsp_cmd_t cmd;
/* Stop command thread */ /* Stop command thread */
vlc_object_kill( p_vod ); vlc_object_kill( p_vod );
...@@ -344,7 +342,8 @@ static void Close( vlc_object_t * p_this ) ...@@ -344,7 +342,8 @@ static void Close( vlc_object_t * p_this )
while( block_FifoCount( p_sys->p_fifo_cmd ) > 0 ) 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) ); memcpy( &cmd, p_block_cmd->p_buffer, sizeof(cmd) );
block_Release( p_block_cmd ); block_Release( p_block_cmd );
if ( cmd.i_type == RTSP_CMD_TYPE_DEL ) if ( cmd.i_type == RTSP_CMD_TYPE_DEL )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment