1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fixed warnings

This commit is contained in:
krepa098 2014-08-11 14:13:13 +02:00
parent 86e6f5f0d1
commit 5304621e86
2 changed files with 7 additions and 3 deletions

View File

@ -1405,6 +1405,8 @@ void Core::cleanupCall(int callId)
void Core::playCallAudio(ToxAv*, int32_t callId, int16_t *data, int length, void *user_data)
{
Q_UNUSED(user_data);
if (!calls[callId].active || calls[callId].audioOutput == nullptr)
return;
calls[callId].audioBuffer.write((char*)data, length*2);
@ -1451,6 +1453,8 @@ void Core::sendCallAudio(int callId, ToxAv* toxav)
void Core::playCallVideo(ToxAv*, int32_t callId, vpx_image_t* img, void *user_data)
{
Q_UNUSED(user_data);
if (!calls[callId].active || !calls[callId].videoEnabled)
return;

View File

@ -267,11 +267,11 @@ vpx_image Camera::getLastVPXImage()
uint8_t* rgb = lastFrame.bits();
size_t i=0, j=0;
for( size_t line = 0; line < h; ++line )
for( int line = 0; line < h; ++line )
{
if( !(line % 2) )
{
for( size_t x = 0; x < w; x += 2 )
for( int x = 0; x < w; x += 2 )
{
uint8_t r = rgb[4 * i + 1];
uint8_t g = rgb[4 * i + 2];
@ -293,7 +293,7 @@ vpx_image Camera::getLastVPXImage()
}
else
{
for( size_t x = 0; x < w; x += 1 )
for( int x = 0; x < w; x += 1 )
{
uint8_t r = rgb[4 * i + 1];
uint8_t g = rgb[4 * i + 2];