mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
fix compiler warning
This commit is contained in:
@@ -316,7 +316,7 @@ void eDVBCISession::receiveData(tSlot *slot, const unsigned char *ptr, size_t le
|
|||||||
while (len > 0)
|
while (len > 0)
|
||||||
{
|
{
|
||||||
int alen;
|
int alen;
|
||||||
const unsigned char *tag = pkt;
|
const unsigned char *stag = pkt;
|
||||||
pkt += 3; // tag
|
pkt += 3; // tag
|
||||||
len -= 3;
|
len -= 3;
|
||||||
hlen = parseLengthField(pkt, alen);
|
hlen = parseLengthField(pkt, alen);
|
||||||
@@ -331,9 +331,9 @@ void eDVBCISession::receiveData(tSlot *slot, const unsigned char *ptr, size_t le
|
|||||||
alen = len;
|
alen = len;
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("1. Call receivedAPDU tag = 0x%2x, len = %d\n", (int) tag, alen);
|
printf("1. Call receivedAPDU tag = 0x%2x, len = %d\n", (int) stag, alen);
|
||||||
|
|
||||||
if (session->receivedAPDU(tag, pkt, alen))
|
if (session->receivedAPDU(stag, pkt, alen))
|
||||||
session->action = 1;
|
session->action = 1;
|
||||||
pkt += alen;
|
pkt += alen;
|
||||||
len -= alen;
|
len -= alen;
|
||||||
|
@@ -494,7 +494,7 @@ void cVideo::ShowPicture(const char * fname, const char *_destname)
|
|||||||
if (ioctl(fd, VIDEO_SET_FORMAT, VIDEO_FORMAT_16_9) < 0)
|
if (ioctl(fd, VIDEO_SET_FORMAT, VIDEO_FORMAT_16_9) < 0)
|
||||||
lt_info("%s: VIDEO_SET_FORMAT failed (%m)\n", __func__);
|
lt_info("%s: VIDEO_SET_FORMAT failed (%m)\n", __func__);
|
||||||
bool seq_end_avail = false;
|
bool seq_end_avail = false;
|
||||||
size_t pos=0;
|
off_t pos=0;
|
||||||
unsigned char *iframe = (unsigned char *)malloc((st.st_size < 8192) ? 8192 : st.st_size);
|
unsigned char *iframe = (unsigned char *)malloc((st.st_size < 8192) ? 8192 : st.st_size);
|
||||||
if (! iframe)
|
if (! iframe)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user