filebrowser, moviebrowser, pictureviewer: clarify error message

Origin commit data
------------------
Commit: 4e1678c2a3
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2015-02-06 (Fri, 06 Feb 2015)
This commit is contained in:
Stefan Seyfried
2015-02-06 17:26:20 +01:00
committed by Jacek Jendrzej
parent 4f0aa4d103
commit e76fbcfe5c
3 changed files with 3 additions and 3 deletions

View File

@@ -562,7 +562,7 @@ bool CFileBrowser::readDir_std(const std::string & dirname, CFileList* flist)
// printf("file.Name: '%s', getFileName: '%s' getPath: '%s'\n",file.Name.c_str(),file.getFileName().c_str(),file.getPath().c_str());
if(stat64((file.Name).c_str(),&statbuf) != 0)
perror("stat error");
fprintf(stderr, "stat '%s' error: %m\n", file.Name.c_str());
else
{
file.Mode = statbuf.st_mode;

View File

@@ -2432,7 +2432,7 @@ bool CMovieBrowser::readDir(const std::string & dirname, CFileList* flist)
// printf("file.Name: '%s', getFileName: '%s' getPath: '%s'\n",file.Name.c_str(),file.getFileName().c_str(),file.getPath().c_str());
if (my_stat((file.Name).c_str(),&statbuf) != 0)
perror("stat error");
fprintf(stderr, "stat '%s' error: %m\n", file.Name.c_str());
else
{
file.Mode = statbuf.st_mode;

View File

@@ -450,7 +450,7 @@ int CPictureViewerGui::show()
pic.Type = tmp.substr(tmp.rfind('.')+1);
struct stat statbuf;
if (stat(pic.Filename.c_str(),&statbuf) != 0)
printf("stat error");
fprintf(stderr, "stat '%s' error: %m\n", pic.Filename.c_str());
pic.Date = statbuf.st_mtime;
playlist.push_back(pic);
}