Changeset 9889
- Timestamp:
- 10/02/14 07:35:28 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/module-dvbapi.c
r9887 r9889 3878 3878 pmt_stopmarking = 0; // to stop_descrambling marking in PMT 6 mode 3879 3879 connfd = -1; // initially no socket to read from 3880 int new = 0;3880 int add_to_poll = 0; // we may need to additionally poll this socket when no PMT data comes in 3881 3881 3882 3882 if (pfd2[i].fd == listenfd) … … 3895 3895 client->port = ntohs(SIN_GET_PORT(servaddr)); 3896 3896 } 3897 new= 1;3897 add_to_poll = 1; 3898 3898 3899 3899 if(cfg.dvbapi_pmtmode == 3 || cfg.dvbapi_pmtmode == 0) { disable_pmt_files = 1; } … … 3998 3998 cs_ddump_mask(D_DVBAPI, mbuf, chunksize, "[DVBAPI] Parsing #%d PMT object(s):", chunks_processed); 3999 3999 dvbapi_handlesockmsg(mbuf, chunksize, connfd); 4000 add_to_poll = 0; 4000 4001 } 4001 4002 else switch (opcode) … … 4056 4057 } while (pmtlen < sizeof(mbuf) && tries--); 4057 4058 4058 // if the connection is new and we read no data, then add it to the poll,4059 // if the connection is new and we read no PMT data, then add it to the poll, 4059 4060 // otherwise this socket will not be checked with poll when data arives 4060 4061 // because fd it is not yet assigned with the demux 4061 if ( new && !pmtlen && !chunks_processed) {4062 if (add_to_poll) { 4062 4063 for (j = 0; j < MAX_DEMUX; j++) { 4063 4064 if (!unassoc_fd[j]) {
Note:
See TracChangeset
for help on using the changeset viewer.