mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
eitd/dmx.cpp: use MAX_SECTION_LENGTH as read size
Origin commit data
------------------
Commit: 0a6177a4d9
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-03-02 (Fri, 02 Mar 2012)
This commit is contained in:
@@ -286,7 +286,7 @@ int DMX::getSection(uint8_t *buf, const unsigned timeoutInMSeconds, int &timeout
|
||||
|
||||
lock();
|
||||
|
||||
int rc = dmx->Read(buf, 4098, timeoutInMSeconds);
|
||||
int rc = dmx->Read(buf, MAX_SECTION_LENGTH, timeoutInMSeconds);
|
||||
|
||||
if (rc < 3)
|
||||
{
|
||||
@@ -503,8 +503,6 @@ int DMX::immediate_start(void)
|
||||
mask[0] = filters[filter_index].mask;
|
||||
dmx->sectionFilter(pID, filter, mask, 1);
|
||||
//FIXME error check
|
||||
//closefd();
|
||||
//return 4;
|
||||
}
|
||||
/* this is for dmxCN only... */
|
||||
eit_version = 0xff;
|
||||
|
Reference in New Issue
Block a user