mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
smal fix showInfoFile
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1298 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -1666,13 +1666,12 @@ void CInfoViewer::showInfoFile()
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
cnt = read(fd, infotext, 79);
|
cnt = read(fd, infotext, 79);
|
||||||
if (cnt < 0) {
|
close(fd);
|
||||||
|
if (cnt < 1) { //EOF == 0
|
||||||
fprintf(stderr, "CInfoViewer::showInfoFile: could not read from infobar.txt: %m");
|
fprintf(stderr, "CInfoViewer::showInfoFile: could not read from infobar.txt: %m");
|
||||||
close(fd);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
close(fd);
|
infotext[cnt-1] = '\0';
|
||||||
infotext[cnt] = '\0';
|
|
||||||
|
|
||||||
xStart = BoxStartX + ChanWidth + 140; // Abstand rechst vom Aufnahmeicon
|
xStart = BoxStartX + ChanWidth + 140; // Abstand rechst vom Aufnahmeicon
|
||||||
xEnd = BoxEndX - 225; // Abstand links von der Progressbar
|
xEnd = BoxEndX - 225; // Abstand links von der Progressbar
|
||||||
|
Reference in New Issue
Block a user