[vlc-commits] access: dvb: scan: update stats if no data
Francois Cartegnie
git at videolan.org
Tue May 3 18:45:44 CEST 2016
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Apr 27 11:37:24 2016 +0200| [c762c1382873428a4a8c8b5edbe56cda2eb5ebf7] | committer: Francois Cartegnie
access: dvb: scan: update stats if no data
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c762c1382873428a4a8c8b5edbe56cda2eb5ebf7
---
modules/access/dvb/scan.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/access/dvb/scan.c b/modules/access/dvb/scan.c
index 808b8b3..a4aed74 100644
--- a/modules/access/dvb/scan.c
+++ b/modules/access/dvb/scan.c
@@ -884,12 +884,13 @@ int scan_Run( scan_t *p_scan )
i_timeout - i_remaining,
SCAN_READ_BUFFER_COUNT,
(uint8_t *) &packet, &i_packet_count );
- if ( i_ret != VLC_SUCCESS )
- break;
if( p_scan->pf_stats )
p_scan->pf_stats( p_scan, p_scan->p_cbdata, &session->i_snr );
+ if ( i_ret != VLC_SUCCESS )
+ break;
+
for( size_t i=0; i< i_packet_count; i++ )
{
if( scan_session_Push( session,
More information about the vlc-commits
mailing list