[vlc-commits] access: dvb: scan: remove unused var
Francois Cartegnie
git at videolan.org
Thu Apr 21 20:23:55 CEST 2016
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Apr 20 14:42:50 2016 +0200| [89e2ba15cc93ec8231354a222ee8d14ca9d953e1] | committer: Francois Cartegnie
access: dvb: scan: remove unused var
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=89e2ba15cc93ec8231354a222ee8d14ca9d953e1
---
modules/access/dvb/access.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/modules/access/dvb/access.c b/modules/access/dvb/access.c
index 493c50e..97f1ed5 100644
--- a/modules/access/dvb/access.c
+++ b/modules/access/dvb/access.c
@@ -355,11 +355,10 @@ static block_t *BlockScan( access_t *p_access )
if( i_probe_start == 0 )
i_probe_start = mdate();
- const int i_read_once = 1;
- block_t *p_block = block_Alloc( i_read_once * TS_PACKET_SIZE );
+ block_t *p_block = block_Alloc( DVB_READ_ONCE_SCAN * TS_PACKET_SIZE );
if( ( i_ret = read( p_sys->i_handle, p_block->p_buffer,
- i_read_once * TS_PACKET_SIZE ) ) <= 0 )
+ DVB_READ_ONCE_SCAN * TS_PACKET_SIZE ) ) <= 0 )
{
msg_Warn( p_access, "read failed: %s", vlc_strerror_c(errno) );
block_Release( p_block );
More information about the vlc-commits
mailing list