mirror of https://github.com/PCSX2/pcsx2.git
usb: Fix a few more warnings.
This commit is contained in:
parent
1b4c8991c8
commit
48961ed3df
|
@ -471,7 +471,7 @@ namespace usb_eyetoy
|
|||
{
|
||||
mpeg_mutex.lock();
|
||||
int len2 = mpeg_buffer.length;
|
||||
if (len < mpeg_buffer.length)
|
||||
if ((unsigned int)len < mpeg_buffer.length)
|
||||
len2 = len;
|
||||
memcpy(buf, mpeg_buffer.start, len2);
|
||||
mpeg_buffer.length = 0;
|
||||
|
|
|
@ -72,11 +72,11 @@ namespace usb_eyetoy
|
|||
|
||||
typedef void (*DShowVideoCaptureCallback)(unsigned char* data, int len, int bitsperpixel);
|
||||
|
||||
typedef struct
|
||||
struct buffer_t
|
||||
{
|
||||
void* start = NULL;
|
||||
size_t length = 0;
|
||||
} buffer_t;
|
||||
};
|
||||
|
||||
static const char* APINAME = "DirectShow";
|
||||
|
||||
|
|
|
@ -456,8 +456,6 @@ namespace usb_eyetoy
|
|||
memcpy(data, footer, sizeof(footer));
|
||||
s->frame_step = 0;
|
||||
}
|
||||
|
||||
send_packet:
|
||||
usb_packet_copy(p, data, max_ep_size);
|
||||
}
|
||||
else if (devep == 2)
|
||||
|
|
Loading…
Reference in New Issue