mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
CScreenSaver: use unified debug output
Origin commit data
------------------
Branch: ni/coolstream
Commit: be78944eb8
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-01-15 (Thu, 15 Jan 2015)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -36,7 +36,7 @@
|
|||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include "audiomute.h"
|
#include "audiomute.h"
|
||||||
#include "screensaver.h"
|
#include "screensaver.h"
|
||||||
|
#include <system/debug.h>
|
||||||
#include <gui/infoclock.h>
|
#include <gui/infoclock.h>
|
||||||
extern CInfoClock *InfoClock;
|
extern CInfoClock *InfoClock;
|
||||||
|
|
||||||
@@ -167,7 +167,7 @@ bool CScreenSaver::ReadDir()
|
|||||||
|
|
||||||
/* open dir */
|
/* open dir */
|
||||||
if((dir=opendir(dir_name)) == NULL) {
|
if((dir=opendir(dir_name)) == NULL) {
|
||||||
fprintf(stderr,"[CScreenSaver] Error opendir ...\n");
|
fprintf(stderr,"[CScreenSaver] %s - %d : error open dir...\n", __func__, __LINE__);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -207,12 +207,12 @@ bool CScreenSaver::ReadDir()
|
|||||||
|
|
||||||
/* close pointer */
|
/* close pointer */
|
||||||
if(closedir(dir) == -1)
|
if(closedir(dir) == -1)
|
||||||
printf("[CScreenSaver] Error no closed %s\n", dir_name);
|
dprintf(DEBUG_NORMAL, "[CScreenSaver] %s - %d : Error no closed %s\n", __func__, __LINE__, dir_name);
|
||||||
|
|
||||||
if(!v_bg_files.empty())
|
if(!v_bg_files.empty())
|
||||||
ret = true;
|
ret = true;
|
||||||
else
|
else
|
||||||
printf("[CScreenSaver] no picture found\n");
|
dprintf(DEBUG_NORMAL, "[CScreenSaver] %s - %d : no picture found\n", __func__, __LINE__);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
@@ -230,7 +230,7 @@ void CScreenSaver::PaintPicture()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("[CScreenSaver] PaintPicture: %s\n", v_bg_files.at(index).c_str());
|
dprintf(DEBUG_INFO, "[CScreenSaver] %s - %d : %s\n", __func__, __LINE__, v_bg_files.at(index).c_str());
|
||||||
m_viewer->ShowImage(v_bg_files.at(index).c_str(), false /*unscaled*/);
|
m_viewer->ShowImage(v_bg_files.at(index).c_str(), false /*unscaled*/);
|
||||||
|
|
||||||
index++;
|
index++;
|
||||||
|
Reference in New Issue
Block a user