mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
filebrowser, moviebrowser, pictureviewer: clarify error message
Origin commit data
------------------
Branch: ni/coolstream
Commit: 678a008310
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2015-02-06 (Fri, 06 Feb 2015)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -563,7 +563,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());
|
// 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)
|
if(stat64((file.Name).c_str(),&statbuf) != 0)
|
||||||
perror("stat error");
|
fprintf(stderr, "stat '%s' error: %m\n", file.Name.c_str());
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
file.Mode = statbuf.st_mode;
|
file.Mode = statbuf.st_mode;
|
||||||
|
@@ -2433,7 +2433,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());
|
// 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)
|
if (my_stat((file.Name).c_str(),&statbuf) != 0)
|
||||||
perror("stat error");
|
fprintf(stderr, "stat '%s' error: %m\n", file.Name.c_str());
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
file.Mode = statbuf.st_mode;
|
file.Mode = statbuf.st_mode;
|
||||||
|
@@ -451,7 +451,7 @@ int CPictureViewerGui::show()
|
|||||||
pic.Type = tmp.substr(tmp.rfind('.')+1);
|
pic.Type = tmp.substr(tmp.rfind('.')+1);
|
||||||
struct stat statbuf;
|
struct stat statbuf;
|
||||||
if (stat(pic.Filename.c_str(),&statbuf) != 0)
|
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;
|
pic.Date = statbuf.st_mtime;
|
||||||
playlist.push_back(pic);
|
playlist.push_back(pic);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user