mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
never used value
This commit is contained in:
@@ -90,12 +90,12 @@ CBaseDec::RetCode CWavDec::Decoder(FILE *in, int /*OutputFd*/, State* state, CAu
|
|||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
fseek(in, header_size, SEEK_SET);
|
fseek(in, header_size, SEEK_SET);
|
||||||
int fmt;
|
// int fmt;
|
||||||
switch(mBitsPerSample)
|
switch(mBitsPerSample)
|
||||||
{
|
{
|
||||||
case 8 : fmt = AFMT_U8;
|
case 8 : //fmt = AFMT_U8;
|
||||||
break;
|
break;
|
||||||
case 16 : fmt = header_size == 0 ? AFMT_S16_BE : AFMT_S16_LE;
|
case 16 : //fmt = header_size == 0 ? AFMT_S16_BE : AFMT_S16_LE;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
printf("%s: wrong bits per sample (%d)\n", ProgName, mBitsPerSample);
|
printf("%s: wrong bits per sample (%d)\n", ProgName, mBitsPerSample);
|
||||||
|
@@ -194,7 +194,7 @@ static int copy_template(uint8_t *dst, uint8_t *src, int len)
|
|||||||
}
|
}
|
||||||
int genpsi(int fd2)
|
int genpsi(int fd2)
|
||||||
{
|
{
|
||||||
int bytes = 0;
|
// int bytes = 0;
|
||||||
uint8_t pkt[SIZE_TS_PKT];
|
uint8_t pkt[SIZE_TS_PKT];
|
||||||
int i, data_len, patch_len, ofs;
|
int i, data_len, patch_len, ofs;
|
||||||
|
|
||||||
@@ -234,13 +234,13 @@ int genpsi(int fd2)
|
|||||||
//-- calculate CRC --
|
//-- calculate CRC --
|
||||||
calc_crc32psi(&pkt[data_len], &pkt[OFS_HDR_2], data_len-OFS_HDR_2 );
|
calc_crc32psi(&pkt[data_len], &pkt[OFS_HDR_2], data_len-OFS_HDR_2 );
|
||||||
//-- write TS packet --
|
//-- write TS packet --
|
||||||
bytes += write(fd2, pkt, SIZE_TS_PKT);
|
// bytes += write(fd2, pkt, SIZE_TS_PKT);
|
||||||
//-- (II) build PAT --
|
//-- (II) build PAT --
|
||||||
data_len = COPY_TEMPLATE(pkt, pkt_pat);
|
data_len = COPY_TEMPLATE(pkt, pkt_pat);
|
||||||
//-- calculate CRC --
|
//-- calculate CRC --
|
||||||
calc_crc32psi(&pkt[data_len], &pkt[OFS_HDR_2], data_len-OFS_HDR_2 );
|
calc_crc32psi(&pkt[data_len], &pkt[OFS_HDR_2], data_len-OFS_HDR_2 );
|
||||||
//-- write TS packet --
|
//-- write TS packet --
|
||||||
bytes += write(fd2, pkt, SIZE_TS_PKT);
|
// bytes += write(fd2, pkt, SIZE_TS_PKT);
|
||||||
|
|
||||||
//-- (III) build PMT --
|
//-- (III) build PMT --
|
||||||
data_len = COPY_TEMPLATE(pkt, pkt_pmt);
|
data_len = COPY_TEMPLATE(pkt, pkt_pmt);
|
||||||
@@ -274,7 +274,7 @@ int genpsi(int fd2)
|
|||||||
//-- calculate CRC --
|
//-- calculate CRC --
|
||||||
calc_crc32psi(&pkt[data_len], &pkt[OFS_HDR_2], data_len-OFS_HDR_2 );
|
calc_crc32psi(&pkt[data_len], &pkt[OFS_HDR_2], data_len-OFS_HDR_2 );
|
||||||
//-- write TS packet --
|
//-- write TS packet --
|
||||||
bytes += write(fd2, pkt, SIZE_TS_PKT);
|
// bytes += write(fd2, pkt, SIZE_TS_PKT);
|
||||||
//-- finish --
|
//-- finish --
|
||||||
avPids.vpid=0;
|
avPids.vpid=0;
|
||||||
avPids.nba=0;
|
avPids.nba=0;
|
||||||
|
@@ -1021,7 +1021,7 @@ FILE *f_open(const char *filename, const char *acctype)
|
|||||||
|
|
||||||
case MODE_PLS: {
|
case MODE_PLS: {
|
||||||
char *ptr2, /*buf[4096], use local buf from function */ servers[25][1024];
|
char *ptr2, /*buf[4096], use local buf from function */ servers[25][1024];
|
||||||
int rval, retries = retry_num;
|
int /*rval,*/ retries = retry_num;
|
||||||
ptr = NULL;
|
ptr = NULL;
|
||||||
|
|
||||||
/* fetch the playlist from the shoutcast directory with our own */
|
/* fetch the playlist from the shoutcast directory with our own */
|
||||||
@@ -1037,7 +1037,7 @@ FILE *f_open(const char *filename, const char *acctype)
|
|||||||
/* operating system because we don't need/want stream caching for */
|
/* operating system because we don't need/want stream caching for */
|
||||||
/* this operation */
|
/* this operation */
|
||||||
|
|
||||||
rval = fread(buf, sizeof(char), 4096, fd);
|
/*rval =*/ fread(buf, sizeof(char), 4096, fd);
|
||||||
f_close(fd);
|
f_close(fd);
|
||||||
|
|
||||||
ptr = strstr(buf, "http://");
|
ptr = strstr(buf, "http://");
|
||||||
|
@@ -169,7 +169,7 @@ int fh_crw_load(const char *filename,unsigned char **buffer,int* xp,int* /*yp*/)
|
|||||||
struct jpeg_decompress_struct *ciptr;
|
struct jpeg_decompress_struct *ciptr;
|
||||||
struct r_crw_jpeg_error_mgr emgr;
|
struct r_crw_jpeg_error_mgr emgr;
|
||||||
unsigned char *bp;
|
unsigned char *bp;
|
||||||
int px,py,c,x=*xp;
|
int px/*,py*/,c,x=*xp;
|
||||||
FILE *fh;
|
FILE *fh;
|
||||||
JSAMPLE *lb;
|
JSAMPLE *lb;
|
||||||
|
|
||||||
@@ -204,7 +204,7 @@ int fh_crw_load(const char *filename,unsigned char **buffer,int* xp,int* /*yp*/)
|
|||||||
|
|
||||||
jpeg_start_decompress(ciptr);
|
jpeg_start_decompress(ciptr);
|
||||||
|
|
||||||
px=ciptr->output_width; py=ciptr->output_height;
|
px=ciptr->output_width; //py=ciptr->output_height;
|
||||||
c=ciptr->output_components;
|
c=ciptr->output_components;
|
||||||
|
|
||||||
|
|
||||||
@@ -234,7 +234,7 @@ int fh_crw_getsize(const char *filename,int *x,int *y, int wanted_width, int wan
|
|||||||
struct jpeg_decompress_struct *ciptr;
|
struct jpeg_decompress_struct *ciptr;
|
||||||
struct r_crw_jpeg_error_mgr emgr;
|
struct r_crw_jpeg_error_mgr emgr;
|
||||||
|
|
||||||
int px,py,c;
|
int px,py/*,c*/;
|
||||||
FILE *fh;
|
FILE *fh;
|
||||||
|
|
||||||
ciptr=&cinfo;
|
ciptr=&cinfo;
|
||||||
@@ -271,7 +271,7 @@ int fh_crw_getsize(const char *filename,int *x,int *y, int wanted_width, int wan
|
|||||||
|
|
||||||
jpeg_start_decompress(ciptr);
|
jpeg_start_decompress(ciptr);
|
||||||
px=ciptr->output_width; py=ciptr->output_height;
|
px=ciptr->output_width; py=ciptr->output_height;
|
||||||
c=ciptr->output_components;
|
// c=ciptr->output_components;
|
||||||
*x=px; *y=py;
|
*x=px; *y=py;
|
||||||
// jpeg_finish_decompress(ciptr);
|
// jpeg_finish_decompress(ciptr);
|
||||||
jpeg_destroy_decompress(ciptr);
|
jpeg_destroy_decompress(ciptr);
|
||||||
|
@@ -47,7 +47,7 @@ inline void m_rend_gif_decodecolormap(unsigned char *cmb,unsigned char *rgbb,Col
|
|||||||
}
|
}
|
||||||
int fh_gif_load(const char *name,unsigned char **buffer,int* /*xp*/,int* /*yp*/)
|
int fh_gif_load(const char *name,unsigned char **buffer,int* /*xp*/,int* /*yp*/)
|
||||||
{
|
{
|
||||||
int px,py,i,ibxs;
|
int px,py,i/*,ibxs*/;
|
||||||
int j;
|
int j;
|
||||||
unsigned char *fbptr;
|
unsigned char *fbptr;
|
||||||
unsigned char *lb;
|
unsigned char *lb;
|
||||||
@@ -79,7 +79,7 @@ int fh_gif_load(const char *name,unsigned char **buffer,int* /*xp*/,int* /*yp*/)
|
|||||||
cmap=(gft->Image.ColorMap ? gft->Image.ColorMap : gft->SColorMap);
|
cmap=(gft->Image.ColorMap ? gft->Image.ColorMap : gft->SColorMap);
|
||||||
cmaps=cmap->ColorCount;
|
cmaps=cmap->ColorCount;
|
||||||
|
|
||||||
ibxs=ibxs*3;
|
// ibxs=ibxs*3;
|
||||||
fbptr=*buffer;
|
fbptr=*buffer;
|
||||||
if(!(gft->Image.Interlace))
|
if(!(gft->Image.Interlace))
|
||||||
{
|
{
|
||||||
|
@@ -234,7 +234,7 @@ int fh_jpeg_getsize(const char *filename,int *x,int *y, int wanted_width, int wa
|
|||||||
struct jpeg_decompress_struct *ciptr;
|
struct jpeg_decompress_struct *ciptr;
|
||||||
struct r_jpeg_error_mgr emgr;
|
struct r_jpeg_error_mgr emgr;
|
||||||
|
|
||||||
int px,py,c;
|
int px,py/*,c*/;
|
||||||
FILE *fh;
|
FILE *fh;
|
||||||
ciptr=&cinfo;
|
ciptr=&cinfo;
|
||||||
if(!(fh=fopen(filename,"rb"))) return(FH_ERROR_FILE);
|
if(!(fh=fopen(filename,"rb"))) return(FH_ERROR_FILE);
|
||||||
@@ -269,7 +269,7 @@ int fh_jpeg_getsize(const char *filename,int *x,int *y, int wanted_width, int wa
|
|||||||
|
|
||||||
jpeg_start_decompress(ciptr);
|
jpeg_start_decompress(ciptr);
|
||||||
px=ciptr->output_width; py=ciptr->output_height;
|
px=ciptr->output_width; py=ciptr->output_height;
|
||||||
c=ciptr->output_components;
|
// c=ciptr->output_components;
|
||||||
#if 1
|
#if 1
|
||||||
if(!g_settings.picviewer_decode_server_ip.empty())
|
if(!g_settings.picviewer_decode_server_ip.empty())
|
||||||
{
|
{
|
||||||
|
@@ -111,10 +111,10 @@ bool CPictureViewer::DecodeImage (const std::string & name, bool showBusySign, b
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
int x, y, xs, ys, imx, imy;
|
int x, y, imx, imy;
|
||||||
|
|
||||||
xs = CFrameBuffer::getInstance()->getScreenWidth(true);
|
// int xs = CFrameBuffer::getInstance()->getScreenWidth(true);
|
||||||
ys = CFrameBuffer::getInstance()->getScreenHeight(true);
|
// int ys = CFrameBuffer::getInstance()->getScreenHeight(true);
|
||||||
|
|
||||||
// Show red block for "next ready" in view state
|
// Show red block for "next ready" in view state
|
||||||
if (showBusySign)
|
if (showBusySign)
|
||||||
|
@@ -502,9 +502,6 @@ void CUpnpBrowserGui::playnext(void)
|
|||||||
std::list<UPnPAttribute>::iterator i;
|
std::list<UPnPAttribute>::iterator i;
|
||||||
std::stringstream sindex;
|
std::stringstream sindex;
|
||||||
std::vector<UPnPEntry> *entries = NULL;
|
std::vector<UPnPEntry> *entries = NULL;
|
||||||
bool rfound = false;
|
|
||||||
bool nfound = false;
|
|
||||||
bool tfound = false;
|
|
||||||
|
|
||||||
sindex << m_playid;
|
sindex << m_playid;
|
||||||
attribs.push_back(UPnPAttribute("ObjectID", m_playfolder));
|
attribs.push_back(UPnPAttribute("ObjectID", m_playfolder));
|
||||||
@@ -536,16 +533,13 @@ void CUpnpBrowserGui::playnext(void)
|
|||||||
m_folderplay = false;
|
m_folderplay = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
nfound=true;
|
|
||||||
}
|
}
|
||||||
if (i->first=="TotalMatches")
|
if (i->first=="TotalMatches")
|
||||||
{
|
{
|
||||||
tfound=true;
|
|
||||||
}
|
}
|
||||||
if (i->first=="Result")
|
if (i->first=="Result")
|
||||||
{
|
{
|
||||||
entries=decodeResult(i->second);
|
entries=decodeResult(i->second);
|
||||||
rfound=true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
m_playid++;
|
m_playid++;
|
||||||
|
Reference in New Issue
Block a user