[dvblast-devel] Poll the frontend before the DVR
Christophe Massiot
git at videolan.org
Mon Oct 3 18:55:27 CEST 2011
dvblast | branch: master | Christophe Massiot <massiot at via.ecp.fr> | Mon Oct 3 18:42:01 2011 +0200| [c89e4926263e2b07cbd7cb0323ccdcf8dcad9293] | committer: Christophe Massiot
Poll the frontend before the DVR
This is in order to get the "lock" message before PAT and PMTs.
> http://git.videolan.org/gitweb.cgi/dvblast.git/?a=commit;h=c89e4926263e2b07cbd7cb0323ccdcf8dcad9293
---
dvb.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dvb.c b/dvb.c
index 959ef00..557b7d3 100644
--- a/dvb.c
+++ b/dvb.c
@@ -158,6 +158,9 @@ block_t *dvb_Read( mtime_t i_poll_timeout )
return NULL;
}
+ if ( ufds[1].revents )
+ FrontendPoll();
+
if ( ufds[0].revents )
{
p_blocks = DVRRead();
@@ -188,9 +191,6 @@ block_t *dvb_Read( mtime_t i_poll_timeout )
}
}
- if ( ufds[1].revents )
- FrontendPoll();
-
if ( i_frontend_timeout && i_wallclock > i_frontend_timeout )
{
if ( i_quit_timeout_duration )
More information about the dvblast-devel
mailing list