[vlc-commits] dvb: keep internal EOF flag

Rémi Denis-Courmont git at videolan.org
Thu Jul 21 21:30:15 CEST 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Jul 19 22:01:20 2016 +0300| [b1512bb2c67b02cce9d7e8e78f79305bd91a26b6] | committer: Rémi Denis-Courmont

dvb: keep internal EOF flag

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b1512bb2c67b02cce9d7e8e78f79305bd91a26b6
---

 modules/access/dvb/access.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/modules/access/dvb/access.c b/modules/access/dvb/access.c
index 0449fad..ae5d5d6 100644
--- a/modules/access/dvb/access.c
+++ b/modules/access/dvb/access.c
@@ -54,6 +54,7 @@ struct access_sys_t
 
     /* Scan */
     struct scan_t *scan;
+    bool done;
 };
 
 /*****************************************************************************
@@ -363,9 +364,10 @@ static block_t *BlockScan( access_t *p_access, bool *restrict eof )
 
     if( scan_Run( p_scan ) != VLC_SUCCESS )
     {
-        if( !p_access->info.b_eof )
+        if( !p_sys->done )
         {
-             msg_Warn( p_access, "Scanning finished" );
+             msg_Info( p_access, "Scanning finished" );
+             p_sys->done = true;
              p_block = scan_GetM3U( p_scan );
         }
         *eof = true;



More information about the vlc-commits mailing list