CInfoViewer::showInfoFile -check file size

Signed-off-by: Jacek Jendrzej <crashdvb@googlemail.com>
This commit is contained in:
Jacek Jendrzej
2013-04-24 13:24:17 +02:00
committed by Thilo Graf
parent a09d7f4a7e
commit 6d088357c3

View File

@@ -1817,7 +1817,7 @@ void CInfoViewer::showInfoFile()
std::string infobar_file = "/tmp/infobar.txt";
//exit if file not found, don't create an info object, delete old instance if required
if (!file_exists(infobar_file.c_str())) {
if (!file_size(infobar_file.c_str())) {
if (infobar_txt)
delete infobar_txt;
infobar_txt = NULL;