mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
some inits warnings
This commit is contained in:
@@ -836,7 +836,7 @@ void CRadioText::RassDecode(unsigned char *mtext, int len)
|
||||
slidenumr = Rass_SlideFoto;
|
||||
}
|
||||
//
|
||||
char *filepath;
|
||||
char *filepath = asprintf(&filepath, "%s/Rass_%d.error", DataDir, slidenumr);
|
||||
(filetype == 2) ? asprintf(&filepath, "%s/Rass_%d.def", DataDir, slidenumr)
|
||||
: asprintf(&filepath, "%s/Rass_%d.mpg", DataDir, slidenumr);
|
||||
if ((fd = fopen(filepath, "wb")) != NULL) {
|
||||
|
@@ -951,7 +951,7 @@ bool CInfoViewer::showLivestreamInfo()
|
||||
CMoviePlayerGui::getInstance().getLivestreamInfo(&livestreamInfo1, &tmp1);
|
||||
|
||||
if (!(videoDecoder->getBlank())) {
|
||||
int xres, yres, framerate;
|
||||
int xres = 0, yres = 0, framerate = 0;
|
||||
std::string tmp2;
|
||||
videoDecoder->getPictureInfo(xres, yres, framerate);
|
||||
switch (framerate) {
|
||||
@@ -980,6 +980,7 @@ bool CInfoViewer::showLivestreamInfo()
|
||||
tmp2 = "60fps";
|
||||
break;
|
||||
default:
|
||||
framerate = 0;
|
||||
tmp2 = g_Locale->getText(LOCALE_STREAMINFO_FRAMERATE_UNKNOWN);
|
||||
break;
|
||||
}
|
||||
|
@@ -2298,7 +2298,7 @@ void CMoviePlayerGui::selectChapter()
|
||||
playback->GetChapters(positions, titles);
|
||||
|
||||
std::vector<int> playlists; std::vector<std::string> ptitles;
|
||||
int current;
|
||||
int current = 0;
|
||||
playback->GetTitles(playlists, ptitles, current);
|
||||
|
||||
if (positions.empty() && playlists.empty())
|
||||
|
@@ -649,7 +649,7 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos)
|
||||
snprintf(buf, sizeof(buf), "%s:", g_Locale->getText (LOCALE_STREAMINFO_AUDIOTYPE));
|
||||
g_Font[font_info]->RenderString (xpos, ypos, box_width, buf, COL_MENUCONTENT_TEXT);
|
||||
|
||||
int type, layer, freq, mode, lbitrate;
|
||||
int type = 0, layer = 0, freq = 0, mode = 0, lbitrate = 0;
|
||||
/*
|
||||
audioDecoder->getAudioInfo() seems broken in libcoolstream2.
|
||||
ddmode is always 1 ("CH1/CH2").
|
||||
|
@@ -466,7 +466,7 @@ int CNeutrinoAPI::setVideoAspectRatioAsString(std::string newRatioString)
|
||||
//-------------------------------------------------------------------------
|
||||
std::string CNeutrinoAPI::getVideoResolutionAsString(void)
|
||||
{
|
||||
int xres, yres, framerate;
|
||||
int xres = 0, yres = 0, framerate = 0;
|
||||
videoDecoder->getPictureInfo(xres, yres, framerate);
|
||||
std::stringstream out;
|
||||
out << xres << "x" << yres;
|
||||
@@ -476,7 +476,7 @@ std::string CNeutrinoAPI::getVideoResolutionAsString(void)
|
||||
//-------------------------------------------------------------------------
|
||||
std::string CNeutrinoAPI::getVideoFramerateAsString(void)
|
||||
{
|
||||
int xres, yres, framerate;
|
||||
int xres = 0, yres = 0, framerate = 0;
|
||||
std::string sframerate = "{=L:unknown=}";
|
||||
videoDecoder->getPictureInfo(xres, yres, framerate);
|
||||
switch(framerate){
|
||||
@@ -491,7 +491,7 @@ std::string CNeutrinoAPI::getVideoFramerateAsString(void)
|
||||
//-------------------------------------------------------------------------
|
||||
std::string CNeutrinoAPI::getAudioInfoAsString(void)
|
||||
{
|
||||
int type, layer, freq, mode, lbitrate;
|
||||
int type = 0, layer = 0, freq = 0, mode = 0, lbitrate = 0;
|
||||
audioDecoder->getAudioInfo(type, layer, freq, lbitrate, mode);
|
||||
std::stringstream out;
|
||||
if(type == 0)
|
||||
@@ -557,7 +557,7 @@ void CNeutrinoAPI::SendAllTimers(std::string url, bool force)
|
||||
Timerd->getTimerList(timerlist);
|
||||
sort(timerlist.begin(), timerlist.end());
|
||||
|
||||
int pre,post;
|
||||
int pre = 0,post = 0;
|
||||
Timerd->getRecordingSafety(pre,post);
|
||||
CHTTPTool httpTool;
|
||||
std::string r_url;
|
||||
|
Reference in New Issue
Block a user