mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-27 07:23:11 +02:00
Revert "libspark/dmx: try to fix mysterious crash with gcc4.9"
This reverts commit 860d6bdbe7
.
as known by now, this had nothing to do with gcc4.9, but with
the cDemux destructor racing with cDemux::Read()
This commit is contained in:
@@ -358,9 +358,8 @@ int cDemux::Read(unsigned char *buff, int len, int timeout)
|
|||||||
|
|
||||||
rc = ::read(fd, buff, len);
|
rc = ::read(fd, buff, len);
|
||||||
//fprintf(stderr, "fd %d ret: %d\n", fd, rc);
|
//fprintf(stderr, "fd %d ret: %d\n", fd, rc);
|
||||||
int saved_errno = errno;
|
|
||||||
if (rc < 0)
|
if (rc < 0)
|
||||||
dmx_err("read: %s", strerror(saved_errno), 0);
|
dmx_err("read: %s", strerror(errno), 0);
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user